Viewport Resizer is freagin awesome... But I always end up running my own set of sizes to represent modern breakpoints.
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
# Node & NPM & iosjs | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash | |
nvm install node | |
nvm install iojs |
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/sh | |
# `sudo sh xcode-version -8.2.1` | |
# Set variables | |
xcodeAppsPattern="Xcode_*.app" | |
DidSwitchedVersions=false | |
CurrentV=$( defaults read /Applications/Xcode.app/Contents/Info CFBundleShortVersionString ) | |
DesiredV="$1" | |
# Move into the right directory |
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 Debug from 'debug'; | |
Debug.enable('company.*'); | |
function createLogger(prefix){ | |
prefix = 'company.project.' + prefix; | |
return { | |
log: Debug(prefix), | |
error: Debug(prefix + '::ERROR'), | |
info: Debug(prefix + '::info'), | |
warning: Debug(prefix + '::warning'), |
The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
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 _ from 'lodash'; | |
const cssName = nameStr => _.lowerFirst(nameStr); | |
export default cssName; |
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 function intersection(a, aa) { | |
return a.filter(item => aa.includes(item)); | |
} | |
export function intersects(a, aa) { | |
return !!intersection(a, aa).length; | |
} |
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 gql from 'graphql-tag' | |
const query = gql`query user($id: ID!) { | |
user( | |
where: { | |
id: $id | |
} | |
) { | |
id | |
createdAt |