更新: | 2013-07-30 |
---|---|
バージョン: | 0.1.1 |
作者: | @voluntas |
URL: | http://voluntas.github.io/ |
概要
更新: | 2013-07-30 |
---|---|
バージョン: | 0.1.1 |
作者: | @voluntas |
URL: | http://voluntas.github.io/ |
概要
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Spec; | |
our $VERSION = sprintf "%d.%02d", q$Revision: 0.1 $ =~ /(\d+)/g; | |
sub usage { exec 'pod2usage', $0 or die "pod2usage: $!" } | |
my $cmd = '/usr/bin/osascript'; | |
die "$0 : $cmd nonexistent" unless -x $cmd; | |
my @paths = grep { -e $_ } map { File::Spec->rel2abs($_) } @ARGV; |
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
2013 Minori Yamashita [email protected]
ターゲットを動的オブジェクト指向プログラマに絞って、関数指向の考え方を説明します。 コードサンプルでは、オブジェクト指向には CoffeeScript ^1、関数指向には Clojure を使用しますが、文章は汎用的に書いてあります。
最下部に用語集があるので、わかりづらい単語、表現があったら参照してください。
I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.
From Require.js - Why AMD:
The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"
I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.
#!/usr/bin/python | |
''' | |
Author: Igor Maculan - [email protected] | |
A Simple mjpg stream http server | |
''' | |
import cv2 | |
import Image | |
import threading | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
from SocketServer import ThreadingMixIn |
var createLocalStorageSync = function(storageKey) | |
{ | |
return function(method, model, options) | |
{ | |
switch (method) | |
{ | |
case 'create': |
(function() { | |
var requestAnimationFrame = (function() { | |
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback, element) { | |
return window.setTimeout(function() { | |
return callback(); | |
}, 1000 / 60); | |
}; | |
})(); | |
var i=0; |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw