Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Eugene Myunster t0lkman

🎯
Focusing
Block or report user

Report or block t0lkman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dabblet.css
body {
background: #daecf1;
}
.wrapper {
position: absolute;
width: 250px;
height: 250px;
left: 50%;
top: 50%;
View dabblet.css
body {
background: #daecf1;
}
.wrapper {
position: absolute;
width: 250px;
height: 250px;
left: 50%;
top: 50%;
View demo.json
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"t0lkman": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
@t0lkman
t0lkman / gist:10963573
Last active Aug 29, 2015
Javascript power of two check
View gist:10963573
function isPowerOfTwo(num) {
return num > 0 && (num & (num-1)) === 0;
}
for(var i = 0; i < 1000; i++){
if(isPowerOfTwo(i)){
console.log(i);
}
}
@t0lkman
t0lkman / dabblet.css
Created Jun 7, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #fff;
background: linear-gradient(45deg, #333, #666);
min-height: 100%;
You can’t perform that action at this time.