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
** 公式(Twitter for iPhone) ** | |
{ | |
"contributors": null, | |
"coordinates": null, | |
"created_at": "Fri Mar 28 06:02:22 +0000 2014", | |
"entities": { | |
"hashtags": [], | |
"media": [ | |
{ |
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
"お誕生日おめでとう!!!".chars{|s|print s*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
require "socket" | |
socket = TCPServer.open(4545) | |
loop do | |
Thread.new(socket.accept) do |s| | |
str = "" | |
loop do | |
num = rand(6).to_s | |
s.write(num) | |
str << num |
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
/usr/lib/ruby/2.1.0/openssl/buffering.rb:326: [BUG] Segmentation fault at 0x007ff09c0000a8 | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0021 p:---- s:0099 e:000098 CFUNC :syswrite | |
c:0020 p:0164 s:0095 e:000094 METHOD /usr/lib/ruby/2.1.0/openssl/buffering.rb:326 | |
c:0019 p:0009 s:0086 e:000085 METHOD /usr/lib/ruby/2.1.0/openssl/buffering.rb:344 | |
c:0018 p:0028 s:0082 e:000081 METHOD /usr/lib/ruby/2.1.0/net/protocol.rb:211 | |
c:0017 p:0009 s:0077 e:000076 BLOCK /usr/lib/ruby/2.1.0/net/protocol.rb:185 | |
c:0016 p:0027 s:0075 e:000074 METHOD /usr/lib/ruby/2.1.0/net/protocol.rb:202 |
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
def 🍣 | |
puts "😄😄😄" | |
end | |
🍣 | |
#=> 😄😄😄 |
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
eval(%w( [129902 | |
2,676, 10,3039 | |
314725 2,1152 | |
671,17 347988 | |
30,94 215099 | |
71181 3100,1 | |
66883 427851 | |
0,151 7381,1 | |
0,263 30644, | |
887,289623 |
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
#!/usr/bin/ruby | |
# coding: utf-8 | |
require "net/https" | |
require "twitter" | |
target = "" # Target screen name | |
rest_client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "" # Your consumer key |
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
# coding: utf-8 | |
Plugin.create(:mikutter_sl) do | |
# ※Terminatorを使用してる場合 | |
# その他のターミナルソフトを使用している場合は適宜書き換えてください | |
@cmd_line = "terminator -x sl" | |
on_mention do |s, msg| | |
msg.each do |m| | |
if m.message.to_s =~ /^.*#{Service.primary.user}\s+sl.*$/ |
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
/usr/lib/ruby/2.1.0/net/http.rb:879: [BUG] rb_sys_fail(getaddrinfo) - errno == 0 | |
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0011 p:---- s:0058 e:000057 CFUNC :initialize | |
c:0010 p:---- s:0056 e:000055 CFUNC :open | |
c:0009 p:0023 s:0049 e:000048 BLOCK /usr/lib/ruby/2.1.0/net/http.rb:879 | |
c:0008 p:0026 s:0047 e:000046 METHOD /usr/lib/ruby/2.1.0/timeout.rb:67 | |
c:0007 p:0082 s:0037 e:000036 METHOD /usr/lib/ruby/2.1.0/net/http.rb:878 | |
c:0006 p:0007 s:0026 e:000025 METHOD /usr/lib/ruby/2.1.0/net/http.rb:863 |
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
consumer_key: "" | |
consumer_secret: "" | |
oauth_token: "" | |
oauth_token_secret: "" |