This file contains 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
<html><head><title>Promise - Error handling</title> | |
<script> | |
(function() { | |
var timeout, prepare, jquery_src; | |
prepare = function() { | |
jquery_src = { | |
'2': 'https://code.jquery.com/jquery-2.2.4.min.js', | |
'3': 'https://code.jquery.com/jquery-3.1.1.min.js' | |
}[location.search.substr(1, 1)]; |
This file contains 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
<html><head><title>Promise</title> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> | |
<script> | |
$(function() { | |
$('#start').show(); | |
$('#prepare').hide(); | |
$('#dialog').hide(); | |
$('#contents').hide(); | |
$('#goal').hide(); |
This file contains 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 | |
set -eu | |
# @(#)Install ffmpeg on CentOS 5 | |
# | |
# Before execute this script, you have to install dependent packages: | |
# (There may be excess or deficiency) | |
# | |
# yum install zlib-devel bzip2 bzip2-devel sqlite sqlite-devel \ |
This file contains 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 | |
set -eu | |
WORKDIR=/path/to/build_dir | |
PREFIX=/path/to/install_dir | |
backdir=`pwd` | |
mkdir -p $WORKDIR | |
cd $WORKDIR |
This file contains 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 | |
# NOTE: currently, convert "trk" only. this does not consider "wpt" and "rte" yet. | |
require 'json' | |
require 'rexml/document' | |
require 'time' | |
json_file = ARGV[0] |
This file contains 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 perl | |
use strict; | |
use warnings; | |
use Getopt::Std; | |
my $opts = { | |
s => 'Standalone', | |
h => '0.0.0.0', | |
p => 5000, |
This file contains 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 | |
exec -- openssl dgst -sha1 $1 |
This file contains 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 'socket' | |
class Util | |
def self.empty_port | |
s = TCPServer.open(0) | |
port = s.addr[1] | |
s.close | |
port | |
end | |
end |
This file contains 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 | |
require 'sinatra/base' | |
SECONDS_INTERVAL = 1.0 | |
URL_STREAM = '/stream' | |
NAME_EVENT = 'ldavg' | |
NUMBER_MAX_PLOT = 180 | |
SEPARATOR_OF_DATA = ' ' |
NewerOlder