Translation from https://gist.github.com/hsbt/7719305
ruby-{MAJOR}.{MINOR}.{TEENY}
class A | |
def say | |
puts "A" | |
end | |
end | |
module B | |
def self.test | |
ref = refine(A) { } |
Translation from https://gist.github.com/hsbt/7719305
ruby-{MAJOR}.{MINOR}.{TEENY}
fizz = f = lambda { | |
fizz = lambda { | |
fizz = lambda { | |
fizz = f | |
"Fizz" | |
} | |
nil | |
} | |
nil | |
} |
#/usr/bin/env ruby | |
# coding: utf-8 | |
# ^ coding: is correct | |
def foooo | |
File.open(ARGV[0]){|f| | |
f.each do |line| | |
# Don't use "unless-else-end" | |
if /fo+/i =~ line | |
print "foooo" | |
else |
# coding:utf-8 | |
def render(template, variables = {}) | |
template.gsub(/✖╹ *(.+?) *╹✖/) do | |
$1.split('.').inject(variables) do |hash, key| | |
hash[key.to_sym] or break nil | |
end | |
end | |
end |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>バックグラウンドでリンクを開くようにする</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$('a').click(function (e) { | |
var clickEvent = document.createEvent('MouseEvents'); |
#encoding: utf-8 | |
require 'nokogiri' | |
require 'net/irc' | |
BOTNICK = "Glass_bot" | |
class TCEBot < Net::IRC::Client | |
def initialize(*args) | |
super |
#encoding: utf-8 | |
require 'nokogiri' | |
require 'net/irc' | |
BOTNICK = "Glass_bot" | |
class TCEBot < Net::IRC::Client | |
def initialize(*args) | |
super |
100.times{|i|s=(i%3==0?"Fizz":'')+(i%5==0?"Buzz":'');puts s==""?i:s} |