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 | |
require "rubygems" | |
require "open-uri" | |
require "json" | |
require "active_support/core_ext" | |
require "pp" | |
print "Content-Type:text/html\r\n\r\n" | |
address = "hamamatsu" |
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 | |
require "rubygems" | |
require "pp" | |
require "koala" | |
token = "accesstoken" | |
@graph = Koala::Facebook::API.new(token) | |
# profile = @graph.get_object("me") | |
friends = @graph.get_connections("me" , "friends") |
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 :dojo do | |
desc "When you greet 'osu!' , gate of the 'dojo' would open." | |
task :osu! do | |
dir = ENV["dojo_name"] | |
fail "please specify 'dojo_name'" unless dir | |
sh "mkdir #{dir}" | |
Dir::chdir(dir) do | |
sh "rspec --init" |
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
$rails g model hogehoge |
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 "rubygems" | |
require "yaml" | |
require "twilio-ruby" | |
config = YAML.load(File.read(File.join(File.dirname(__FILE__), '..', 'config.yml'))) | |
if !config | |
print "config.yml does not found!" | |
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
source "https://rubygems.org" | |
gem 'tiny_tds' | |
gem 'activerecord-sqlserver-adapter' | |
gem 'arel', '~> 3.0.2' | |
gem "tap" | |
gem "ruby-odbc" | |
gem "dbi" | |
gem "dbd-odbc" | |
gem "logger" |
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
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQueryのテスト</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script src="./scripts/jquery.bxslider.min.js"></script> | |
<link rel="stylesheet" href="./css/jquery.bxslider.css" type="text/css" /> | |
<script> | |
$(document).ready( | |
function(){ |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise32" |
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 bash | |
apt-get update | |
apt-get upgrade | |
apt-get install -y apache2 | |
#rm -rf /var/www | |
#ln -fs /vagrant /var/www | |
apt-get install vim |
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
# apt_package "apt-get upgrade" do | |
# action :upgrade | |
# end | |
package "apache2" do | |
action :install | |
ignore_failure true | |
end | |
package "git" do |
OlderNewer