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
$ brew install pngquant |
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
apt-get -y install build-essential git libssl-dev zlib1g-dev libreadline-dev zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev | |
echo 'install: --no-ri --no-rdoc' >> ~/.gemrc | |
echo 'update: --no-ri --no-rdoc' >> ~/.gemrc | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
exec /bin/bash -l | |
git clone https://github.com/sstephenson/ruby-build.git | |
cd ruby-build/ | |
./install.sh |
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
sudo apt-get update | |
sudo apt-get install zsh | |
chsh | |
sudo apt-get install git | |
sudo apt-get install ttf-takao-mincho | |
sudo apt-get install ttf-takao | |
passwd | |
sudo apt-get install vim |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.13' | |
gem 'sqlite3' | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'therubyracer', :platforms => :ruby | |
gem 'uglifier', '>= 1.0.3' |
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
$ padrino g project testqr -e slim | |
$ cd testqr | |
$ bundle install |
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
!!! Strict | |
%html | |
%head | |
%title= [@title, "Ruby2.0 blog"].compact.join(" | ") | |
= stylesheet_link_tag 'reset', 'application' | |
= javascript_include_tag 'jquery', 'application' | |
= yield_content :include | |
%body | |
#header | |
%h1 Sample Padrino Blog |
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
# | |
# Nifty Cloud Strage fileuploader | |
# docs : http://docs.aws.amazon.com/AWSRubySDK/latest/frames.html | |
# | |
require "aws" | |
ncs = AWS::S3.new( | |
access_key_id: "ACCESS_KEY", | |
secret_access_key: "SECRET_ACCESS_KEY", | |
s3_endpoint: "west-1-ncss.nifty.com" | |
) |
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
var request = require('request'), | |
querystring = require('querystring'); | |
var Note = function(key){ | |
this.key = key; | |
} | |
Note.prototype = new process.EventEmitter(); | |
var SimpleNote = function(email, passwd){ | |
this.email = email; |
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
# Simple SimpleNote client library | |
# Erik Kastner 2010-07-18 | |
require 'rubygems' | |
require 'rest_client' | |
require 'base64' | |
require 'json' | |
class SimpleNote | |
def initialize(email, password) |
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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |