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
wget "ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz" | |
tar xf readline-6.2.tar.gz | |
cd readline-6.2 | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p125 | |
make -j 2 | |
make install | |
cd .. | |
wget "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz" | |
tar xf yaml-0.1.4.tar.gz |
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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' | |
# Usually mina focuses on deploying to one host and the deploy options are therefore simple. | |
# In our case, there is a number of possible servers to deploy to, it is therefore necessary to | |
# specify the host that we are targeting. | |
server = ENV['server'] | |
# Since the same host can have multiple applications running in parallel, it is necessary to |
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
namespace :spree_tools do | |
desc "Generate random coupon codes in bulk." | |
task :generate_coupons => :environment do | |
puts "How many codes would you like to generate?" | |
number_of_codes = STDIN.gets.strip.to_i | |
puts "\nHow much would you like this discount to be for?" | |
amount = STDIN.gets.strip.to_f | |
puts "\nWhat product should this promotion apply for? (use product name)" |
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
#!/usr/bin/env python2 | |
# coding: utf-8 | |
from __future__ import print_function | |
import sys | |
import re | |
import json | |
import urllib | |
from colorama import init, Fore, Back, Style | |
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn' |
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
// GSON can parse the data. | |
// | |
// Deserialization: | |
// Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
// To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
// See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
// | |
// Serialization: | |
// <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
// access to the actual data instead of storing them in fields and it is therefore them we need to register a |
Many thanks to @satya164 and this thread
for getting things moving.
##Setup your app on Facebook
- The quickstart is the best way to get everything you need (keys, hashes etc). Make sure to generate your Key Hash or else login will not work!
https://developers.facebook.com/quickstarts/?platform=android