godのインストール
sudo gem install god
godの起動
$ god -c god.rb
#coding: utf-8 | |
require 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = YOUR_CONSUMER_KEY | |
config.consumer_secret = YOUR_CONSUMER_SECRET | |
config.oauth_token = YOUR_OAUTH_TOKEN | |
config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET | |
end | |
client = Twitter::Client.new |
godのインストール
sudo gem install god
godの起動
$ god -c god.rb
package Acme::UuuuNyaaa; | |
use strict; | |
use warnings; | |
sub new{ | |
my $class = shift; | |
my $self = bless {}, $class; | |
return $self; |
sudo apt-get install libjpeg-dev libtiff-dev libpng-dev giflib-dev libttf-dev libfreetype6-dev | |
sudo cpan -i Imager |
use strict; | |
use warnings; | |
use Compress::Raw::Zlib; | |
my $file_name = shift; | |
my $opt_name = "glitched_".$file_name; | |
open (FH, $file_name) or die "$!"; | |
binmode FH; | |
my $hoge = *FH; |
#!/usr/bin/env ruby | |
require 'thor' | |
class NginxConf < Thor | |
desc 'register PORT', 'install new config file' | |
option :prefix, type: :string, default: "/usr/local" | |
def register(port) | |
root = Dir::pwd | |
project = root.split(/\//).last |
(\ (\ | |
(,, 0 ω 0) < Github | |
(/ (/ \) \) |
.gist { | |
color: #000; | |
} | |
.gist div { | |
padding: 0; | |
margin: 0; | |
} | |
.gist .gist-file { |
# -*- coding: utf-8 -*- | |
module StringsOfJewelve | |
COLOR_NUMBERS = (0..7).to_a | |
def to_jewelve | |
return self.split('').map(&:to_random_colored).shuffle.join | |
end | |
def to_random_colored |