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
using UnityEngine; | |
using System.Collections; | |
public class Main : MonoBehaviour { | |
public string url = "http://www.google.com"; | |
public string output = "(ここに結果を表示)"; | |
private GetViaHttp http; | |
void Start() { |
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
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
import org.flexunit.asserts.fail; | |
import org.fluint.sequence.ISequenceStep; | |
import org.fluint.sequence.SequenceCaller; | |
import org.fluint.sequence.SequenceDelay; | |
import org.fluint.sequence.SequenceEventDispatcher; | |
import org.fluint.sequence.SequenceRunner; |
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
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
import org.flexunit.asserts.fail; | |
import org.fluint.sequence.ISequenceStep; | |
import org.fluint.sequence.SequenceCaller; | |
import org.fluint.sequence.SequenceDelay; | |
import org.fluint.sequence.SequenceEventDispatcher; | |
import org.fluint.sequence.SequenceRunner; |
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
Entry.connection.execute("TRUNCATE TABLE entries;") |
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
class Object | |
# login する | |
def login | |
@base_uri = "http://localhost:3000" | |
@agent = Mechanize.new | |
page = @agent.get("#{@base_uri}/users/sign_in") | |
page.form["user[email]"] = "[email protected]" | |
page.form["user[password]"] = "password" | |
page = @agent.submit(page.form) |
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
# カレントディレクトリの .irbrc を読み込む | |
current_irbrc = File.join(Dir.pwd, ".irbrc") | |
if File.exist?(current_irbrc) | |
load current_irbrc | |
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
$ composite -dissolve 25%x25% source1.jpg source2.jpg output.jpg |
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 | |
require 'origami' | |
include Origami | |
pdf = PDF.read(ARGV[0]) | |
images = pdf.root_objects.find_all {|obj| obj.is_a?(Graphics::ImageXObject)} | |
images.each do |stream| |
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
function cdgem { | |
cd `dirname \`gem which $1\``; | |
} |
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 | |
require 'origami' | |
include Origami | |
pdf = PDF.read(ARGV[0]) | |
images = pdf.root_objects.find_all {|obj| obj.is_a?(Graphics::ImageXObject)} | |
images.each do |stream| |