This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In console | |
$(".user-actions.btn-group.not-following button.user-actions-follow-button").each(function(index,value) { | |
console.log(index) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ALL); | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors',1); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ getent group group_name |
NewerOlder