ハロー
ワールド
#! /usr/bin/env ruby | |
require 'date' | |
s = Time.now | |
result = $stdin.readline.chomp | |
e = Time.now | |
if result =~ /いちごましまろ/ | |
puts "いちごましまろ(#{ e - s}秒)" | |
else |
#! /bin/sh | |
# grep-gems | |
# | |
# (1) grep rubygems sources. | |
# > grep-gems "def select_tag" | |
# | |
# (2) open source. | |
# > grep-gems "def select_tag" | |
# 1 /usr/lib/ruby/gems/1.8/gems/foo/a.rb |
function inspect(obj) { | |
var name; | |
var result = ""; | |
for(name in obj) { | |
if (typeof obj[name] !== 'function') { | |
result = result + name + " : " + obj[name] + "\n"; | |
} | |
} | |
return result; | |
} |
diff --git a/app/src/processing/app/syntax/InputHandler.java b/app/src/processing/app/syntax/InputHandler.java | |
index 9a11d38..764cc06 100644 | |
--- a/app/src/processing/app/syntax/InputHandler.java | |
+++ b/app/src/processing/app/syntax/InputHandler.java | |
@@ -73,6 +73,9 @@ public abstract class InputHandler extends KeyAdapter | |
public static final ActionListener CLIPBOARD_CUT = new clipboard_cut(); // [fry] | |
public static final ActionListener CLIPBOARD_COPY = new clipboard_copy(); | |
public static final ActionListener CLIPBOARD_PASTE = new clipboard_paste(); | |
+ public static final ActionListener BEGIN_LINE = new begin_line(); | |
+ public static final ActionListener END_LINE = new end_line(); |
package jp.co.esm.myscalatra.domain | |
import org.squeryl._ | |
import org.squeryl.PrimitiveTypeMode._ | |
import jp.co.esm.myscalatra.domain.model._ | |
import org.squeryl.adapters.PostgreSqlAdapter | |
object Schema extends Schema { | |
val users = table[User]("users") | |
" vundle | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/vundle.git/ | |
call vundle#rc() | |
Bundle 'unite.vim' | |
Bundle 'rails.vim' | |
Bundle 'git://github.com/vim-ruby/vim-ruby.git' |
// !$*UTF8*$! | |
{ | |
archiveVersion = 1; | |
classes = { | |
}; | |
objectVersion = 46; | |
objects = { | |
/* Begin PBXBuildFile section */ | |
7A27F2E316709B860065C7FC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A27F2E216709B860065C7FC /* UIKit.framework */; }; |
NSString *data = [NSString stringWithContentsOfFile:@"/tmp/a" | |
encoding:NSUTF8StringEncoding | |
error:nil]; | |
NSArray *lines; | |
// 行に分解 | |
lines = [data componentsSeparatedByString:@"\n"]; | |
// コメント行を取り除く | |
lines = [lines filteredArrayUsingPredicate: | |
[NSPredicate predicateWithBlock:^BOOL(NSString *line, NSDictionary *bindings) { | |
line = [line stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; |