This file contains hidden or 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
//----------------------------------------- | |
// Math.protoytype.range() | |
// Write a method called `range` to the Math prototype that accepts 2 arguments and | |
// returns a random integer number inside of that range | |
// | |
// The order of the arguments passed shouldn't matter. | |
// | |
// Hint: You will need to use the existing Math.prorotMath.prototype.floor() | |
//------------------------------------------ |
This file contains hidden or 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
mkdir ./css/fonts | |
FONTS_ARRAY=(eot svg ttf woff woff2) | |
for font_ext in "${FONTS_ARRAY[@]}" | |
do | |
echo downloading $font_ext | |
curl https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/fonts/fontawesome-webfont.${font_ext}?raw=true > ./css/fonts/fontawesome-webfont.${font_ext} | |
done |
This file contains hidden or 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
mkdir ./css/fonts | |
FONTS_ARRAY=(eot svg ttf woff woff2) | |
for font_ext in "${FONTS_ARRAY[@]}" | |
do | |
echo downloading $font_ext | |
curl https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/fonts/fontawesome-webfont.${font_ext}?raw=true > ./css/fonts/fontawesome-webfont.${font_ext} | |
done |
This file contains hidden or 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
console.log('wired up!') | |
var Promiser = { | |
callBackList: [], | |
fetchJSON: function(url){ | |
var resolvePromise = function (context) { | |
var dataResponse = JSON.parse(this.responseText) | |
var cb = context.callBackList.shift() |
This file contains hidden or 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
puts "hello gist" |
NewerOlder