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
#~/.profile is the place to put stuff that applies to your whole session, such as programs that you want to start when you log in (but not graphical programs, | |
#they go into a different file), and environment variable definitions. | |
# syntax to just add multiple entries at the same time. If you want to add one line at a time it's more like export PATH="/usr/local/bin:$PATH" | |
# path does not need to be exported, but things like ANDROID_HOME do | |
export GOPATH=$HOME/go | |
export PATH=$PATH:$GOPATH/bin | |
# export GOPATH=$HOME/golang |
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
version: "2.2" | |
services: | |
web: | |
build: . | |
ports: | |
- "8080:8080" | |
depends_on: | |
- "db" | |
db: | |
image: postgres:9.6-alpine |
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 webpack = require('webpack'); | |
const path = require('path'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const merge = require('webpack-merge'); | |
const webpackconfig = require('./webpack.config.js'); | |
module.exports = (config) => { | |
config.set({ | |
browsers: ['PhantomJS', 'Chrome'], //run in Chrome |
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 webpack = require('webpack'); | |
const path = require('path'); | |
// Webpack extensions | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const validate = require('webpack-validator'); | |
// For production builds, additional steps are necessary. |
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
#~/.profile is the place to put stuff that applies to your whole session, such as programs that you want to start when you log in (but not graphical programs, | |
#they go into a different file), and environment variable definitions. | |
# syntax to just add multiple entries at the same time. If you want to add one line at a time it's more like export PATH="/usr/local/bin:$PATH" | |
# path does not need to be exported, but things like ANDROID_HOME do | |
export GOPATH=$HOME/golang | |
export STASH_CREDS=sgentile | |
export ANDROID_HOME=/Users/sgentile/Library/Android/sdk |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
clean: ['css/style.min.css', 'app/main-built.js'], | |
concat: { | |
css: { | |
src: ['css/style.css'], | |
dest: 'css/temp.css' | |
} | |
}, | |
cssmin: { |
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
people = [{name:'Steve', age:43},{name:'Tyler', age:8}] | |
puts people.reduce(0) {|sum, value| sum + value[:age] } # 51 | |
puts people.map {|n| n[:age]} # 43, 8 | |
learn more! http://ruby-doc.org/core-2.0/Enumerable.html | |
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
class Person: | |
def __init__(self, name, age): | |
self.name = name | |
self.age = age | |
people = [] | |
people.append(Person("Steve", 43)) | |
people.append(Person("Tyler", 8)) | |
print map(lambda x: x.age, people) # [43,8] |
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
#helloWorld.coffee file | |
# Node Module | |
run = -> | |
console.log 'This is example node module' | |
exports.run = run | |
# Calling from another file, ie. app.coffee |
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
class Person | |
@test: (input) -> | |
return input | |
@staticProperty : 10 | |
@get: -> | |
return {name:'Steve'} | |
nonStatic: -> | |
return "non static" | |
console.log Person.test 'Hello World' |
NewerOlder