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
/* Gray */ | |
@value gray-0: #f8f9fa; | |
@value gray-1: #f1f3f5; | |
@value gray-2: #e9ecef; | |
@value gray-3: #dee2e6; | |
@value gray-4: #ced4da; | |
@value gray-5: #adb5bd; | |
@value gray-6: #868e96; | |
@value gray-7: #495057; |
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 React from 'react' | |
const bgStyles = { | |
strokeWidth: 3, | |
strokeLinejoin: 'round', | |
strokeLinecap: 'round', | |
fill: 'none', | |
stroke: '#c3fdff' | |
} |
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 React from 'react' // export default React | |
import React, Component from 'react' // first is default, followed by exported | |
import foo from 'lib' // no default, so just grab all exports | |
// Maybe there's some reasoning behind the other choices regarding static analysis but | |
// most of the otheres seem unnecessary. Alternatively just using the destructuring syntax | |
// would be pretty nice and easier to remember. |
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 mapDispatchToProps(dispatch) { | |
return { | |
checkActions: bindActionCreators(checkActions, dispatch), | |
statsActions: bindActionCreators(statsActions, dispatch), | |
settingsActions: bindActionCreators(settingsActions, dispatch) | |
} | |
} |
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
.normal { | |
padding: 5px 25px; | |
border: 1px solid #eee; | |
} | |
.large { | |
padding: 25px 50px; | |
composes: normal; | |
} |
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
let rows = {} | |
export default function(props = [], state = []) { | |
return function(target) { | |
const proto = Object.create(target.prototype) | |
proto.shouldComponentUpdate = function(newProps, newState) { | |
let id = (this._update_id = this._update_id || Math.random()) |
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
update_terraform() { | |
version=$1 | |
echo "[+] updating terraform to $version" | |
curl -# -o /tmp/terraform.zip https://releases.hashicorp.com/terraform/$version/terraform_${version}_darwin_amd64.zip | |
echo "[+] unzipping archive" | |
unzip /tmp/terraform.zip -d /tmp/terraform |
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": "node", | |
"description": "Node.js example project", | |
"memory": 128, | |
"timeout": 5, | |
"environment": { | |
"LOGGLY_TOKEN": "123123123123" | |
} | |
} |
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": "coffeescript", | |
"description": "Coffeescript example using hooks", | |
"role": "arn:aws:iam::293503197324:role/lambda", | |
"runtime": "nodejs", | |
"hooks": { | |
"build": "coffee -cs < index.coffee > index.js", | |
"clean": "rm index.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
package main | |
import ( | |
"encoding/json" | |
"github.com/apex/apex" | |
) | |
type Message struct { | |
Hello string `json:"hello"` |