Is there a code to make your eyes bright?

Source: Internet
Author: User
Work in the study of what makes you feel the light of the code, you can share it to let everyone learn, no matter the code is simple or complex, also not limited to language, as long as you think the wording is very ingenious, or there is new, or the original can also, or you learned from what, you can share! (not necessarily very skillful, seemingly beautiful short code can be, not as long as the cool rare code)

Reply content:

"★★★★★☆☆☆☆☆".substring(5-rating,10-rating);
echo 15 > /sys/class/acpi_backlight=vendor/acpi_osi=Linux/brightness
_='_=%r;print _%%_';print _%_
I prefer to look at the comments in the code compared to the code, giving you a sense of the world in front of you:

about using document.write correctly
/* * 在IE下,document.write执行的顺序会错乱 * 假设使用document.write写入script标签,顺序为a1->a2->a3,并在a3中定义了变量hello * 则同样使用document.write写入b1脚本,无法读取hello * 必须使用至少对应的3层嵌套,形成b1->b2->b3顺序的document.write,在b3中读取hello变量才可行 * 因此,使用checkStatus函数自调用递归5层来读取全局的FOO变量 * * 如果在5层嵌套没到的情况下发现全局FOO变量已经被赋值,则可以提前退出 */
Prime number Regular:

^1?$|^(11+)\1+$
[].ForEach.Pager($$("*"),function(a){  a.style.Outline="1px solid #"+(~~(Math.Random()*(1<< -))).toString( -)}) 

void memcpy (char* to, char* from, size_t count)

{

size_t n = (count+7)/8;

Switch (count%8)

{

Case 0:do{*to++ = *from++;

Case 7: *to++ = *from++;

Case 6: *to++ = *from++;

Case 5: *to++ = *from++;

Case 4: *to++ = *from++;

Case 3: *to++ = *from++;

Case 2: *to++ = *from++;

Case 1: *to++ = *from++;

}while (--n>0);

}

}

@ Assembly the head wrote a 42-character Python code and printed the code itself. Divine skill. Fun program: A program that prints your own code Segmentation fault
Python 一行打印小九九
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.