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
[ | |
{ | |
"name": "about", | |
"version": "1.5.0" | |
}, | |
{ | |
"name": "aligner-scss", | |
"version": "1.1.0" | |
}, | |
{ |
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 foo(something){ | |
console.log( this.a, something ); | |
return this.a + something; | |
} | |
function bind(fn, obj) { | |
return function() { | |
return fn.apply(obj, arguments); | |
}; | |
} |
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
/* | |
* @desc https://www.hackerrank.com/challenges/utopian-tree | |
* @param integer n | |
* @return integer of the height of the Utopian Tree after n cycles | |
*/ | |
function utree (n) { | |
if(n===0){ | |
return 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
/* | |
* @desc https://www.hackerrank.com/challenges/sherlock-and-the-beast | |
* @param integer n | |
* @return array length of n filled with 5s || 3s or False | |
*/ | |
function decentNumber (n) { | |
var head, | |
c = n/3, |
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 isEmpty(myObject) { | |
for(var key in myObject) { | |
if (myObject.hasOwnProperty(key)) { | |
return false; | |
} | |
} | |
return true; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
<style type="text/css"> | |
.cell{width: 60px; height:60px; background: #efefef; border: 1px solid #fff; display: inline-block} | |
.cell.o{background: skyblue} | |
.cell.x{background: teal} |
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
body:empty { | |
background: blue; | |
} |
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
//A. Target Safari | |
if( $.browser.safari ) {}; | |
//B. Target anything above IE6 | |
if ($.browser.msie && $.browser.version > 6 ) {}; | |
//C. Target IE6 and below | |
if ($.browser.msie && $.browser.version <= 6 ) {}; | |
//D. Target Firefox 2 and above |