Skip to content

Instantly share code, notes, and snippets.

View kyanny's full-sized avatar

Kensuke Nagae kyanny

View GitHub Profile
みなさまRubyKaigiお疲れ様でしたー。素敵なKaigiに再会できてうれしかったです。
RubyKaigiまわりで、同じ分野の問題提起が二つありましたねぇ。
一つはKaigi中での、「台湾の女の子はKawaii、だからRubyKaigi Taiwanに来るべき」という発言、
それを笑いで迎えた場内に対して、女性への配慮が足りないだろうという意見。
https://gist.github.com/kyanny/5694201
もう一つは、続くRubyHirobaでの、ポルノに関しての情報処理技術についてのLTがあったこと。
(そして、実際にそれを聞いて傷ついた女性が存在し、問題が提起されました)
RubyhirobaはRubyKaigiとは独立した、せっかく東京にRubyistがたくさん居るんだから交流しよう!という、
LTとWorkshopと交流の場を提供するイベントです。
@shanselman
shanselman / gist:5422230
Last active March 28, 2024 10:33
Evil Blog Comment Spammer just exposed his template through some error and the whole thing showed up in my comments.
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
// ==UserScript==
// @name github-build-badge
// @author linyows
// @namespace http://linyows.com/
// @description "Expand build status badge"
// @include https://github.com/*
// ==/UserScript==
(function() {
var match_witch_badge = /<a href="(http:\/\/ci[0-9]{0,3}\..*\.[a-z]{2,5}\/job\/.*)"><img src=".*" alt="Build Status" data-canonical-src=".*" style=".*"><\/a>/g;
module Element
alias_method :near_equal?, :===
def ===(other)
other.respond_to?(:include?) ? other.include?(self) : self.near_equal?(other)
end
end
[String, Symbol, Numeric].each do |elm|
elm.send(:include, Element)

go 1.1 scheduler

where

src/pkg/runtime proc.c asm_*.s

design

@laiso
laiso / hoge.m
Created April 11, 2013 08:14
テストコード
{
id addressbook = [OCMockObject mockForClass:[RHAddressBook class]];
id person = [OCMockObject mockForClass:[RHPerson class]];
[[person expect] setFirstName:@"テスト"];// 実行順序 3
[[person expect] setLastName:@"ユーザー"];// 実行順序 4
[[person expect] save];// 実行順序 6
RHMutableMultiValue* emails = [[RHMutableMultiValue alloc] initWithType:kABMultiStringPropertyType];
[emails addValue:@"test@example.com" withLabel:(__bridge NSString*)kABWorkLabel];

Array#bsearch の前提について

arrayはソート済みである必要がある。ここで言う「ソート済み」とは、各要素に対してブロックを評価した場合に

[false, false, false, false, true, true]

みたいな感じになっている必要がある、という意味で、

[true, false, true, false, true]
@fujimura
fujimura / listen_spring.rb
Created March 28, 2013 05:00
listen_spring.rb
require 'listen'
def run(files_to_run)
puts "Running: #{files_to_run}"
system %|bundle exec spring rspec #{files_to_run}|
end
Listen.to 'spec', filter: /.*_spec\.rb/ do |modified, added, removed|
file_to_run = (modified || added).first
run file_to_run
# !!!!! まだ動きません!!!!! Fastladder 側で改修が必要 !!!!!
require 'user-stream-receiver'
require 'json'
require 'rest_client'
UserStreamReceiver.new.run{|chunk|
begin
chunk = JSON.parse(chunk)
= 桐島、((*Ruby*))やめるってよ
: author
nari/@nari3/authorNari
: institution
ネットワーク応用通信研究所
: content-source
#odrk03
: date
2013/3/16