我希望你能告诉我...
CentOS 软件源东西太少了,yum install xx 时一堆No package jaljl available
还是用这个吧。。
链接
test1: { | |
console.log(1); | |
console.log(2); | |
console.log(3); | |
break test1; | |
// 下面的代码不会执行 | |
console.log(4); | |
console.log(5); | |
} |
// find prime, example from Web Workers | |
var n = 1, | |
i, | |
q; | |
search: while (true) { | |
n += 1; | |
for (i = 2, q = Math.sqrt(n); i <= q; i++) { | |
if (n % i === 0) { | |
continue search; |
javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&t='+e(d.title)+'&d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&s=bm';a=function(){if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=400'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0) |
#!/usr/bin/env sh | |
# http://os.51cto.com/down/?dir=linuxops | |
wget -nc http://os.51cto.com/{os,down}/linuxops/{pdf/,}51cto_linuxops_issue{20..1}.{pdf,epub,mobi} |
# http://httpd.apache.org/docs/2.4/mod/mod_proxy.html | |
<VirtualHost *:80> | |
ServerName www.test.com | |
ServerName test.com | |
ProxyPass / http://127.0.0.1:3000/ | |
ProxyPassReverse / http://127.0.0.1:3000/ | |
</VirtualHost> |
### | |
simple script to save web page as a png file | |
example: | |
phantomjs web_snapshot.coffee http://m.wikipedia.org/wiki/Special:Random | |
### | |
page = require('webpage').create() | |
system = require 'system' |
我希望你能告诉我...
CentOS 软件源东西太少了,yum install xx 时一堆No package jaljl available
还是用这个吧。。
链接
### | |
http://coffeescript.org/#cake | |
`cake -n jia morning` | |
### | |
option '-n', '--name [NAME]', 'name to say morning to' | |
task 'wake', 'Wake up', -> | |
console.log 'Time to wake up' |
### | |
load from CoffeeScript | |
just load, nothing else | |
### | |
{hello} = require './test' | |
hello() |