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
url = require 'url' | |
config = require './config' | |
StreamServer = require './stream_server' | |
Bits = require './bits' | |
logger = require './logger' | |
Bits.set_warning_fatal true | |
logger.setLevel logger.LEVEL_INFO |
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
var StreamServer = require('node-rtsp-rtmp-server'); | |
var server = new StreamServer; | |
server.start(); |
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
is_continuous = false | |
start_code = nil | |
last_code = nil | |
File.open("EastAsianWidth.txt").each do |line| | |
if !(/^\s*#/ =~ line) and !(/^\s*$/ =~ line) | |
if /^([^;]+);(\S+)/ =~ line | |
if $2.index 'W' or $2.index 'F' | |
if not is_continuous | |
start_code = $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
var http = require('http'); | |
function onRequest(req, res) { | |
console.log("onRequest"); | |
res.writeHead(200, {"Content-Type": "text/plain"}); | |
res.end("Hello, World\n"); | |
} | |
var server = http.createServer(onRequest); | |
server.listen(1337, "127.0.0.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
fib = (n) -> | |
throw new Error "n must be positive integer" if n < 0 | |
switch n | |
when 0 then 0 | |
when 1 then 1 | |
else | |
fib(n-1) + fib(n-2) |
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 Net::GrowlClient; | |
use Getopt::Long::Descriptive; | |
my ($opt, $usage) = describe_options( | |
`basename $0`." %o", | |
[ "name|n:s", "Set the name of the application that sends the notification", {default => "growlnotify"} ], | |
[ "priority|p:i", "Specify an int or named key", {default => 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
--type-set | |
coffeescript=.coffee | |
--type-add | |
html=.mt,text=.txt,coffeescript=.coffee |
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 lib 'lib'; | |
use MyApp; | |
my $app = MyApp->new; | |
$app->setup; |
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
DBI Exception: DBD::mysql::st execute failed: Duplicate entry '(null)' for key 'apns_token' [for Statement "INSERT INTO user_apns ( apns_token, created_date, user) VALUES ( ?, ?, ? )" with ParamValues: 0="(null)", 1='2011-01-31 18:02:49', 2='407'] at /home/homepage/perl5/lib/perl5/DBIx/Class/Schema.pm line 1026 | |
..続く | |
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
diff -Nur Object-Container-0.11.orig/Makefile.PL Object-Container-0.11/Makefile.PL | |
--- Object-Container-0.11.orig/Makefile.PL 2010-10-05 18:54:58.000000000 +0900 | |
+++ Object-Container-0.11/Makefile.PL 2010-10-20 20:21:20.000000000 +0900 | |
@@ -5,6 +5,7 @@ | |
requires 'Carp'; | |
requires 'Class::Accessor::Fast'; | |
requires 'parent'; | |
+requires 'B::Hooks::EndOfScope'; | |
recommends 'Exporter::AutoClean'; |
NewerOlder