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
<?php | |
//--rev 6 | |
//--request | |
//----GET ?count=$count(long int) | |
//----POST ?name=$name(string)&point=$point(long int) | |
//--response | |
//----body エラー401、200番台であれば結果が返ってきます。402は読み込みエラーなので | |
//---- 結果はタブ区切り、UTF-8です。1行目はランキングじゃないのでー | |
//UTF-8使用しています。URLエンコードしてからリクエストすること。 |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Resources; | |
public class ResXEntry : IComparable | |
{ | |
private string _key; | |
private object _value; | |
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 "net/http" | |
require "uri" | |
require "cgi" | |
Plugin.create :loopsuruyatu do | |
@main_window = nil | |
@loop_num_of = {} | |
Gtk::TimeLine.addopenway(/^http:\/\/loop\.suruyatu\.com\/\d+/) do |shrinked_url, cancel| | |
begin |
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 "base64" | |
def encode_utf7(str) | |
str.gsub("+", "+-").gsub(/[^+A-Za-z0-9'(),-.\/:? \t\r\n]+/) {|m| "+" + [[m.each_codepoint.to_a.map{|m| "%04x" % m }.join].pack("H*")].pack("m0").delete("=") + "-" } | |
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
<?php | |
$st = microtime(true); | |
for($i = 0; $i < 100000000; $i++) | |
echo 'testabcdeftestabcdeftestabcdeftestabcdeftestabcdeftest'; | |
$sm = microtime(true); | |
fwrite(STDERR, "single quote" . "\t" . ($sm - $st) . "\n"); | |
$st = microtime(true); | |
for($i = 0; $i < 100000000; $i++) |
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
r,s="おちんぽ","";s<<r[rand 4]until s.match r;puts s,"\nおぉぉお゙お゙~っ!!イグゥウ!!イッグゥウウ!!\n\n#{s.size}回目で果てました…" |
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 "cgi" | |
Plugin.create(:mikutter_update_name) do | |
on_mention do |s, msgs| | |
msgs.each do |m| | |
if CGI.unescapeHTML(m.message.to_s) =~ /\A@#{Service.primary.user} update_name (.+)\z/ | |
n = $1 | |
(Service.primary/"account/update_profile").message(name: n) | |
Service.primary.post(message: ".@#{m.message.user} さんにより名前が #{n.inspect} に変更されました") | |
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
package jp.rhe.test.twitterauth; | |
import android.app.Activity; | |
import android.content.ComponentName; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.TextView; |
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
[ 30.182] | |
X.Org X Server 1.14.5 | |
Release Date: 2013-12-12 | |
[ 30.183] X Protocol Version 11, Revision 0 | |
[ 30.183] Build Operating System: Linux 3.12.5-1-ARCH x86_64 | |
[ 30.183] Current Operating System: Linux chikuwa 3.12.5-1-ARCH #1 SMP PREEMPT Thu Dec 12 12:57:31 CET 2013 x86_64 | |
[ 30.183] Kernel command line: BOOT_IMAGE=../vmlinuz-linux root=/dev/sda1 rw initrd=../initramfs-linux.img | |
[ 30.183] Build Date: 13 December 2013 03:11:42PM | |
[ 30.183] | |
[ 30.183] Current version of pixman: 0.32.4 |
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
diff --git a/gtk2/ext/gtk2/rbgdkevent.c b/gtk2/ext/gtk2/rbgdkevent.c | |
index 6a5d068..08b437a 100644 | |
--- a/gtk2/ext/gtk2/rbgdkevent.c | |
+++ b/gtk2/ext/gtk2/rbgdkevent.c | |
@@ -32,6 +32,12 @@ static VALUE gdkevents[35]; | |
static VALUE gdkevents[34]; | |
#endif | |
+struct RBasicRaw { | |
+ VALUE flags; |
OlderNewer