Skip to content

Instantly share code, notes, and snippets.

View t0lkman's full-sized avatar
🎯
Focusing

Eugene Myunster t0lkman

🎯
Focusing
View GitHub Profile
@t0lkman
t0lkman / gist:10963573
Last active August 29, 2015 13:59
Javascript power of two check
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 June 7, 2013 06:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #fff;
background: linear-gradient(45deg, #333, #666);
min-height: 100%;
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"t0lkman": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
@t0lkman
t0lkman / dabblet.css
Last active December 19, 2018 19:21
Untitled
body {
background: #daecf1;
}
.wrapper {
position: absolute;
width: 250px;
height: 250px;
left: 50%;
top: 50%;
@t0lkman
t0lkman / dabblet.css
Created December 19, 2018 19:21
Untitled
body {
background: #daecf1;
}
.wrapper {
position: absolute;
width: 250px;
height: 250px;
left: 50%;
top: 50%;