An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
//In console | |
$(".user-actions.btn-group.not-following button.user-actions-follow-button").each(function(index,value) { | |
console.log(index) | |
}) |
//closure in loop | |
var funcs = []; | |
var ret=[]; | |
var flag=0; | |
function exec4(){console.log("exec4")} | |
for (var i = 0; i < 3; i++) { | |
funcs[i] = (function(index) { | |
return function() { |
//closure in loop | |
var funcs = []; | |
var ret=[]; | |
var flag=0; | |
function exec4(){console.log("exec4")} | |
for (var i = 0; i < 3; i++) { | |
funcs[i] = (function(index) { | |
return function() { |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name localhost; | |
location / { |
function( d ) { | |
// Create a copy of this date object | |
var target = new Date(d.valueOf()); | |
// ISO week date weeks start on monday | |
// so correct the day number | |
var dayNr = (d.getDay() + 6) % 7; | |
// Set the target to the thursday of this week so the |
$ getent group group_name |
error_reporting(E_ALL); | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors',1); | |
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
function tryIt() { | |
var sheets = { | |
"1": { | |
"name": "type1", | |
"marker": "http://www.google.com/mapfiles/markerA.png" | |
}, | |
"2": { | |
"name": "type2", | |
"marker": "http://www.google.com/mapfiles/markerB.png" | |
}, |