An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
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 |
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 / { |
//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() { |
//In console | |
$(".user-actions.btn-group.not-following button.user-actions-follow-button").each(function(index,value) { | |
console.log(index) | |
}) |