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" |
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
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
//----------------------------------------- | |
// 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
const DivContainerComponent = React.createClass({ | |
render: function(){ | |
return ( | |
<div className={this.props.containerClassName || ""}> | |
{this.props.dataList.map((elData, i)=>{ | |
return React.cloneElement(this.props.children, {data: elData, key: `${(new Date()).getTime()}-${i}`}) | |
})} | |
</div> | |
) | |
} |
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
export const STORE = { | |
_data: { | |
shoutOutList: [], | |
shownRatingType: 'PG', | |
currentNavRoute: '' | |
}, | |
getStoreData: function(){ | |
return this._data | |
}, |
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
const Backbone = require('backbone'); | |
// import STORE from '../store/store.js'; | |
// import toastr from 'toastr' | |
const { UserModel, TodoModel, TodoCollection } = require('UserModel') | |
const ACTIONS = { | |
fetchTodoCollection: function(queryObj){ | |
}, |
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
const Backbone = require('backbone') | |
// const AppViewController = require('backbone') | |
const AppRouter = Backbone.Router.extend({ | |
routes: { | |
"*" : "renderCatchAll" | |
}, | |
renderCatchAll: function(){ | |
document.querySelector('#app-container').innerHTML = "<h1>YOLO</h1>" |
OlderNewer