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
[global] | |
ioengine=libaio | |
direct=1 | |
invalidate=1 | |
group_reporting | |
directory=/home | |
filename=test.bin | |
runtime=60 | |
[Rand-Read-4k-qd32] |
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
window.pp = (object) -> console.log JSON.stringify(object, null, 2) |
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 'barby' | |
require 'barby/barcode' | |
require 'barby/barcode/code_128' | |
require 'barby/outputter/ascii_outputter' | |
require 'barby/outputter/png_outputter' | |
require 'pry' | |
require 'pp' | |
module Barby | |
class Codabar < Barcode1D |
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
#coding: utf-8 | |
require 'sinatra' | |
require 'digest/md5' | |
# 個人用なのでいろいろ削った | |
# オリジナルとクライアントのソース | |
# https://github.com/gyazo/Gyazo | |
post '/example/example/example' do | |
imagedata = params['imagedata'][:tempfile].read |
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
use strict; | |
use warnings; | |
my @file = glob "*"; | |
foreach my $f (@file){ | |
if($f=~/(.*)\.(.*)/){ | |
unless($2=~/jpg|png|gif|bmp|svg/){ | |
&rename_img($f); | |
} | |
} |
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 "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 |
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
// https://twitter.com/settings/design でブラウザのURL入ってるとこに入れて保存する | |
// サイドバーと背景は透明になるけど流石にfontは消えなかった。transparentとか指定しても弾かれる | |
javascript:d=document;d.getElementById("user_profile_sidebar_fill_color").value = '';d.getElementById("user_profile_sidebar_border_color").value = '';d.getElementById("user_profile_text_color").value = '';d.getElementById("user_profile_background_color").value = '';d.getElementById("user_profile_link_color").value = '';void(0); | |
//chromeのURLバーに入れてもjavascript実行できなくなった。 | |
//ブックマークレットにして使った方がよさそう。 | |
javascript:d=document;d.getElementById("user_profile_sidebar_fill_color").value = '';d.getElementById("user_profile_sidebar_border_color").value = '';void(0); |
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
number_to_currency(3980000, :unit => "円", :format => "%n%u", :precision => 0) | |
#=> 3,980,000円 |
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
class Nyan | |
attr_accessor :piyo | |
def test | |
p piyo | |
if false | |
p "in!!!!!!!!!!!!!!" | |
piyo = "wan!!" | |
end | |
p piyo |
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
#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 |