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
var http = require("http"); | |
var util = require("util"); | |
var fs = require('fs'); | |
var StreamChunker = require('streamchunker'); | |
var server = http.createServer(function(req, res) { | |
var name = req.url.replace('/', 'recv.'); | |
var file = fs.createWriteStream(name); | |
var streamChunker = new StreamChunker({ |
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/bash | |
EXT="gif" | |
PTAG="rgif" | |
ONAME=$1_$PTAG.$EXT | |
ffmpeg -i "$1" -an -r 15 -bt 1024k -f mpeg1video -vcodec pam -s 320x176 - | convert -delay 1x15 -loop 0 -limit memory 64 -limit map 128 mpg: - gif: "$ONAME" |
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/bash | |
dir="/home/path" | |
fproc="dtvts_to_m4v" | |
fext="m2ts" | |
lext="ts" | |
eext="m4v" | |
# check process | |
proc=`ps cax | grep -c ${fproc}` |
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/bash | |
ENCODER="HandBrakeCLI" | |
# version=6, f(-q)=18 | |
OPTS='-t 1 -c 1 -f mp4 --denoise="weak" -w 1280 -l 720 --crop 0:0:0:0 --modulus 2 -e x264 -q 18 -a 1 -E faac -6 stereo -R Auto -B 128 -D 0 -x b-adapt=2:me=umh:merange=64:subq=10:trellis=2:ref=8:bframes=6 --verbose=1' | |
EXT="m4v" | |
$ENCODER $OPTS -i "$1" -o "$1.$EXT" |
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
var PORT = 10443; | |
var SSL_KEY = '___.key'; | |
var SSL_CERT= '___.cert'; | |
var fs = require('fs'); | |
var io = require('socket.io').listen(PORT, { | |
key : fs.readFileSync(SSL_KEY).toString(), | |
cert : fs.readFileSync(SSL_CERT).toString() | |
}); |
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
// _|_ | |
// \ / | |
// v |
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
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(50, 49, 48, 43, 42, 41, 40); | |
void setup() | |
{ | |
lcd.begin(16, 2); | |
lcd.print("Initializing..."); | |
lcd.noAutoscroll(); | |
/* |
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
/** | |
* Countdown - Call Function When Finished Countdown | |
**/ | |
var Countdown = Class.create({ | |
initialize: function(pInitialValue, pFunction){ | |
this.i = pInitialValue; | |
this.f = pFunction; | |
}, | |
turn: function(){ | |
--this.i; |
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
<!DOCTYPE HTML> | |
<html lang="ja-JP"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>reiplayer/v2.9.0-alpha</title> |
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
/** | |
* node.js demo chat server (app.js) | |
**/ | |
var http = require('http'); | |
var io = require('socket.io'); | |
var port = 13902; | |
var server = http.createServer(function(req, res){ |