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
parseInt(64).toString(); // "64" | |
parseInt(64).toString(10); // "64" | |
parseInt(64).toString(2); // "1000000" | |
parseInt(64).toString(8); // "100" | |
parseInt(64).toString(16); // "40" |
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
#myelement { | |
color: #999; /* shows in all browsers */ | |
*color: #999; /* notice the * before the property - shows in IE7 and below */ | |
_color: #999; /* notice the _ before the property - shows in IE6 and below */ | |
} |
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
# shows changes required to get from master branch to recyclingMicrosite; effectively what’s in recyclingMicrosite that’s NOT in master. | |
git diff --name-status master..recyclingMicrosite | |
# The triple-dot syntax ... shows what is in either master OR recyclingMicrosite but not both | |
# typically these are commits since recyclingMicrosite was branched from master. | |
git diff --name-status master...recyclingMicrosite | |
# remove the recyclingMicrosite branch from the repo |
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
SET YEAR=%DATE:~6,4% | |
SET MONTH=%DATE:~3,2% | |
SET DAY=%DATE:~0,2% | |
SET HOUR=%TIME:~0,2% | |
IF /I %HOUR% LEQ 9 SET HOUR=0%HOUR:~1,1% | |
SET MINUTE=%TIME:~3,2% | |
SET SECOND=%TIME:~6,2% | |
SET ISODATE=%YEAR%-%MONTH%-%DAY%_%HOUR%-%MINUTE%-%SECOND% |
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
SET GLOBAL log_output = 'TABLE'; | |
SET GLOBAL general_log = 'ON'; |
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
SET GLOBAL log_output = "FILE"; --which may be set by default, I think. | |
SET GLOBAL general_log_file = "/path/to/your/logfile.log" | |
SET GLOBAL general_log = 'ON'; |
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
{= {NUMPAGES} - {PAGE} + 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
function cacheBusterMinutes(cache_for_minutes) { | |
var d = new Date; | |
return d.getFullYear() + ("0" + d.getMonth()).slice(-2) + ("0" + d.getDate()).slice(-2) + ("0" + d.getHours()).slice(-2) + ("0" + parseInt(d.getMinutes() / cache_for_minutes)).slice(-2); | |
} |
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
/* one item */ | |
.employee span:first-child:nth-last-child(1) { | |
width:100%; | |
} | |
/* two items */ | |
.employee span:first-child:nth-last-child(2) | |
, span:first-child:nth-last-child(2) ~ span { | |
width:50%; | |
} |
OlderNewer