- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
import React from 'react'; | |
import useFeatureFlag from './useFeatureFlag'; | |
import RecommendationsComponent from './Recommendations.js'; | |
const { | |
DecoratedComponent: Recommendations, | |
featureEnabled: recommendationsFeatureEnabled, | |
FeatureFlag | |
} = useFeatureFlag({ | |
Component: RecommendationsComponent, |
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 { filter, test, keys, fromPairs, map, match } = require('ramda'); | |
const env = dotenv.config({ path: ".env.local" }).parsed; | |
const featureKeys = filter(test(/^FEATURE/), keys(env)); | |
const FeatureFlags = fromPairs(map(key => [match(/FEATURE_([\w\W]+)/, key)[1], env[key]], featureKeys)); | |
module.exports = {plugins: [new webpack.DefinePlugin({ ...env, FeatureFlags })]}; | |
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
var codeEval = document.createElement('div'); | |
var inputBox = document.createElement('textarea', { rows: 200, cols: 800 }); | |
var evalButton = document.createElement('button'); | |
var buttonText = document.createTextNode('Eval'); | |
evalButton.appendChild(buttonText); | |
codeEval.appendChild(inputBox); | |
codeEval.appendChild(evalButton); | |
document.body.insertBefore(codeEval, document.body.firstElementChild); | |
evalButton.addEventListener('click', function () { eval(inputBox.value)}); |
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
#!/bin/bash | |
# (optional) You might need to set your PATH variable at the top here | |
# depending on how you run this script | |
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Hosted Zone ID e.g. BJBK35SKMM9OE | |
ZONEID="enter zone id here" | |
# The CNAME you want to update e.g. hello.example.com |
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
paths=( | |
"/Applications/Postgres93.app/Contents/MacOS/bin" | |
"$PATH:$GOPATH/bin" | |
"/usr/local/bin" | |
"/usr/local/opt" | |
"/usr/local" | |
"/opt/chefdk/bin" | |
"$HOME/.node/bin" | |
"$NPM_PACKAGES/bin" | |
"/usr/local/sbin" |
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
var Inject = { | |
externalCSS: function(href) { | |
var css = document.createElement('link'); | |
css.href = href; | |
css.type = 'text/css'; | |
css.rel = 'stylesheet'; | |
var head = document.getElementsByTagName('head')[0]; | |
head.appendChild(css); | |
}, | |
fontAwesome: function(){ |
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
# Chruby Default Gem Installer | |
# Install gems for all installed versions of ruby | |
# by Nick Prokesch | |
source /usr/local/share/chruby/chruby.sh | |
gems=( | |
bundler | |
homesick | |
mechanize |
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
// from http://foundation.zurb.com/forum/posts/1899-zurb-abide-ajax-validation | |
(function($) { | |
$.fn.markInvalid = function(text) { | |
$(this).filter(":input").each(function(i, el) { | |
var input = $(el); | |
var container = input.closest(".row"); | |
var label = container.find(".prefix"); | |
var error = container.find("small.error"); |
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
// http://stackoverflow.com/questions/7420209/amazon-s3-permission-problem-how-to-set-permissions-for-all-files-at-once | |
{ | |
"Version":"2008-10-17", | |
"Id":"http referer policy example", | |
"Statement":[ | |
{ | |
"Sid":"readonly policy", | |
"Effect":"Allow", | |
"Principal":"*", | |
"Action":"s3:GetObject", |
NewerOlder