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
# encoding: utf-8 | |
site 'http://community.opscode.com/api/v1' | |
cookbook "apt" | |
cookbook "nginx", {} | |
cookbook "vim", {} | |
cookbook "redis", {:github=>"ctrabold/chef-redis"} | |
cookbook "ruby_build", {:github=>"fnichol/chef-ruby_build", :ref=>"v0.7.2"} | |
cookbook "rbenv", {:github=>"fnichol/chef-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
// with static data, do filtering and sorting in the client | |
<Autocomplete | |
initialValue="Ma" | |
items={getUnitedStates()} | |
getItemValue={(item) => item.name} | |
shouldItemRender={(item, value) => ( | |
state.name.toLowerCase().indexOf(value.toLowerCase()) !== -1 || | |
state.abbr.toLowerCase().indexOf(value.toLowerCase()) !== -1 | |
)} | |
sortItems={(a, b, value) => ( |
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
daemon off; | |
worker_processes 6; | |
user nobody nobody; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
## please note: this assumes you have a folder called _StartingSiteTemplate in ~/Documents. | |
## i have uploaded a zip of my _StartingSiteTemplate here: http://cl.ly/1u2W1K2Q192Z3C0r2J0x | |
## that file above is based off of paul irish's html5 boilerplate - highly recommended! | |
## NOTE: this is using textmate and LESScss, but those are easily configurable. | |
## NOTE: if rsync isn't working for you, note the file paths I'm using. | |
newSite(){ | |
echo "Please name the directory: " | |
read SITE_NAME | |
echo "Creating $SITE_NAME... zomg!" |
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' | |
import { TextField, RaisedButton, FlatButton, Paper, Toggle, RadioButton, RadioButtonGroup, DropDownMenu } from 'material-ui' | |
//This is a HOC which adds required material-ui themes to the component | |
//You should be able to not use material-ui at all or add childContextTypes with the theme | |
import MuiComponent from '../containers/MuiComponent' | |
/* | |
You dont have to use these components so I recommened you change styles to you liking. | |
*/ | |
let FormValues; |
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
filetype on | |
filetype off | |
filetype plugin indent on | |
set nocompatible | |
set encoding=utf-8 | |
set modelines=0 | |
set scrolloff=3 | |
set autoindent | |
set showmode | |
set showcmd |
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
@events = | |
events: {} | |
on: (topic, handler, context = this) -> | |
(@events[topic] or= []).push {handler, context} | |
trigger: (topic, args...) -> | |
return unless @events[topic]? | |
handler.apply(context, args) for {handler, context} in @events[topic] |
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
a=b=c=(1..100).each do |num| | |
print num, ?\r, | |
("Fizz" unless (a = !a) .. (a = !a)), | |
("Buzz" unless (b = !b) ... !((c = !c) .. (c = !c))), | |
?\n | |
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
brew cask install google-chrome | |
brew cask install firefox | |
brew cask install skype | |
brew cask install spotify | |
brew cask install iterm2 | |
brew cask install atom | |
brew cask install virtualbox --appdir=/Applications | |
brew install azukiapp/azk/azk |
OlderNewer