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
#!/bin/sh | |
OUTPUTFILE=$1 | |
while read line || [[ -n $line ]]; do | |
echo $line | |
done < $OUTPUTFILE | |
exit 0 |
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
$('#table tr').sort(function(a, b){return ( Number( $('input:first-child', $('td:eq(1)', a) ).val()) - Number( $('input:first-child', $('td:eq(1)', b) ).val() ) );}).each(function(){$('#table').append($(this));}); |
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
$('#table tr').sort(function(a, b){return ( Number( $('td:eq(0)', a).text() ) - Number( $('td:eq(0)', b).text() ) );}).each(function(){$('#table').append($(this));}); |
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
while argv = ARGV.shift | |
File::open(argv, "r") do |rf| | |
File::open("#{File::realpath(rf)}.cnv", "w") do |wf| | |
while line = rf.gets | |
wf.puts line.gsub(/\\([0-9]+)/){ | |
[$1.oct].pack("C*") | |
} | |
end | |
end | |
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
require 'sinatra' | |
helpers do | |
def directory_index(path) | |
['index.html', 'index.htm' ].map{|i| "./public/#{path}/#{i}" } | |
end | |
end | |
get '*/' do | |
path = request.path_info | |
p path |
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 'sinatra/base' | |
require 'pp' | |
require 'webrick' | |
require 'webrick/https' | |
require 'openssl' | |
CRT_FILE_NAME = 'server.crt' | |
RSA_FILE_NAME = 'server.key' |