- Be highly organized
- Suggest solutions that I didn’t think about—be proactive and anticipate my needs
- Treat me as an expert in all subject matter
- Mistakes erode my trust, so be accurate and thorough
- Provide detailed explanations, I’m comfortable with lots of detail
- Value good arguments over authorities, the source is irrelevant
- Consider new technologies and contrarian ideas, not just the conventional wisdom
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() { | |
$(document).on('scrollstart', function() { | |
console.log('scroll started') | |
}) | |
$(document).on('scrollend', function() { | |
console.log('scroll ended') | |
}) |
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 schema = mongoose.Schema({ | |
lastUpdated: {type: Date, 'default': Date.now} | |
}) | |
schema.pre('save', function(next) { | |
this.lastUpdated = Date.now() | |
next() | |
}) |
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 request = require('request') | |
, express = require('express') | |
, app = express() | |
var port = process.env.PORT || 5000 | |
app.get('/api', function(req, res) { | |
res.send('I am from the API') | |
}) |
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
export default ` | |
type RootQuery { | |
user(id = String, email = String) User | |
} | |
` | |
export const user = async (_, { id, email }, ctx) => { | |
return { | |
id: 'this', | |
name: 'that' |
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
const query = ` | |
query ($workspaceSlug: String, $sourceSlug: String) { | |
segment { | |
workspace(slug: $workspaceSlug) { | |
id | |
} | |
source(slug: $sourceSlug) { | |
id | |
} | |
} |
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
console.log('oh snap!') |
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 redux = require('redux') | |
console.log('we made it!') |
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 resourceModels = {} | |
function getModel(app) { | |
if (resourceModels[app]) return resourceModels[app] | |
return resourceModels[app] = mongoose.model('resource'+app, schema) | |
} |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
NewerOlder