- Node Version Manager (nvm): https://github.com/creationix/nvm
- rbenv (Manage ruby versions): https://github.com/rbenv/rbenv
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 greet = function(name) { | |
console.log("Hello, " + name + "!"); | |
}; | |
greet("Dave"); | |
const sayHello = greet; | |
sayHello("Juan"); |
I hereby claim:
- I am daegren on github.
- I am daegren (https://keybase.io/daegren) on keybase.
- I have a public key ASCEfH6uw8AOuQSGUgdpji1uVdYvKr6WL5go_W0d8iQ91wo
To claim this, I am signing this object:
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
// Requirements: | |
// - Take in two numbers from the command line | |
// - `console.log` the sum of the two numbers | |
var input1 = process.argv[2]; | |
var input2 = process.argv[3]; | |
var number1 = parseInt(input1); | |
var number2 = parseInt(input2); |
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 NODE_ENV = process.env.NODE_ENV || 'development'; | |
const config = require('./knexfile')[NODE_ENV]; | |
const knex = require('knex')(config); | |
const express = require('express'); | |
const logger = require('knex-logger'); | |
const app = express(); | |
app.use(logger(knex)); | |
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
// | |
// Rectangle.h | |
// BreakoutW1D2 | |
// | |
// Created by David Mills on 2017-05-02. | |
// Copyright © 2017 David Mills. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
class Universe | |
while energy | |
decay | |
star = stars.pop | |
if star.mass > KASSHENDAR_LIMIT | |
BlackHole.new(star) | |
Notification.new('woah', Neo) | |
end | |
end |
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 ValidatorMixin = { | |
validate: function() { | |
var obj = this.state[this.validationObject]; | |
var errors = {}; | |
for (var key in this.validationRules) { | |
var rule = this.validationRules[key]; | |
if (!rule.valid(obj[key])) { | |
errors[key] = rule.message; | |
} | |
} |
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 | |
# xcode-build-number-generator.sh | |
# @desc Automaticvally create build number every time using curent day, month and year | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" |
NewerOlder