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
// Box Model | |
// ========================================================================== | |
@mixin border-box { | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
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
/*---------------------------------* | |
* MEDIA BREAKPOINTS | |
/*---------------------------------*/ | |
small = 768px | |
tablet = 992px | |
desktop = 1200px | |
/*---------------------------------* | |
* MEDIA SHORTCUT | |
/*---------------------------------*/ |
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": "npm-config", | |
"version": "1.0.0", | |
"description": "task with pure node", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build-css": "node-sass src/css/style.scss dist/css/style.css", | |
"build-js": "babel --presets babel-preset-es2015 dist/js/app.js -d dist/js/", | |
"minify-js": "uglifyjs dist/js/app.js -o dist/js/app.min.js", |
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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
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": "Start it", | |
"version": "1.0.0", | |
"description": "project starter for static scaffolding", | |
"main": "dist/js/bundle.js", | |
"scripts": { | |
"start": "webpack --watch", | |
"build": "webpack", | |
"build:prod": "webpack -p --config webpack.config.prod.js", | |
"watch": "webpack --progress --watch", |
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
*, *:after, *:before { | |
box-sizing: border-box; | |
} | |
a { | |
color: inherit; | |
text-decoration: none; | |
} | |
ul { |
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
import { | |
GraphQLNonNull, | |
GraphQLObjectType, | |
GraphQLInt, | |
GraphQLString, | |
GraphQLID, | |
} from 'graphql'; | |
import { mutationWithClientMutationId, fromGlobalId } from 'graphql-relay'; | |
import validator from 'validator'; | |
import db from '../../db'; |
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.prototype.debounce = function (delay) { | |
var func = this, | |
timeout; | |
return function debounced() { | |
var obj = this, | |
args = arguments; | |
function delayed () { | |
func.apply(obj, args); |
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 randomColor() { | |
return('#' + Math.floor(Math.random() * 16777215).toString(16)); | |
} |