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 System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| //VisualStudioで実行する際、参照設定に"System.Web"を追加してください。 | |
| //ソリューションエクスプローラの参照設定を右クリック→参照の追加→".NET"のタブ→"System.Web"→"OK" | |
| namespace rename_file | |
| { | |
| class Program | |
| { |
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
| #!/use/bin/env ruby | |
| require 'cgi' | |
| require 'json' | |
| json = JSON.parse(CGI.new["json"]) | |
| x,y = IO.pipe | |
| print "Content-Type: text/plain\n\n" | |
| json["events"].each do |e| | |
| system'yaourt', '-Ss', e["messege"]["text"], out: x |
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
| ThreadError | |
| thread 0x270c1f8 tried to join itself | |
| rubygems.rb:840:in `synchronize' | |
| rubygems.rb:840:in `searcher' | |
| rubygems/custom_require.rb:34:in `require' | |
| rubygems/config_file.rb:220:in `load_file' | |
| rubygems/config_file.rb:168:in `initialize' | |
| rubygems.rb:385:in `new' |
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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| if RUBY_VERSION < '1.9' | |
| require 'rubygems' | |
| require 'kconv' | |
| end | |
| require 'mechanize' | |
| require 'rexml/document' | |
| require 'socket' |
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
| #/usr/bin/env ruby | |
| # code:utf-8 | |
| def foooo | |
| File::open(ARGV[0]){|f| | |
| f.each do |line| | |
| unless(/fo+/i =~ line) | |
| print "Error" | |
| else | |
| print "foooo" | |
| 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
| using System; | |
| using System.Collections; | |
| using System.Text; | |
| using System.IO; | |
| namespace FooooScritpt | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
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
| _bash=`which vim` | |
| if test _bash = "/usr/bin/bash" ; then | |
| LANG=ja_JP.UTF-8 | |
| elif test _bash = "/usr/bin/bash.exe" ; then | |
| LANG=ja_JP.sjis | |
| JLESSCHARSET="japanese-sjis" | |
| OUTPUT_CHARSET=sjis | |
| fi |
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
| Option Explicit | |
| Dim oShell | |
| Set oShell = WScript.CreateObject ("WScript.Shell") | |
| oShell.run "C:\MinGW\msys\1.0\bin\bash.exe -c 'source ~/.bashrc; gvim' &" | |
| Set oShell = Nothing |
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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| if RUBY_VERSION < '1.9' | |
| require 'rubygems' | |
| end | |
| require 'json' | |
| require 'mechanize' | |
| require 'cgi' |
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
| if RUBY_VERSION < '1.9' | |
| require 'rubygems' | |
| end | |
| require 'sinatra' | |
| require 'json' | |
| def sandbox(&code) | |
| proc { | |
| $SAFE = 2 | |
| eval &code |