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
trait IHoge | |
trait IFuga | |
case class Sample(hogeFugas: List[IHoge with IFuga]) // できる |
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
public IObservable<string> AsyncFunc () { | |
Subject<string> data = new Subject<string>(); | |
/// 非同期の処理 | |
SomeAsyncFunc( | |
(res) => { | |
/// callback | |
data.OnNext(res); | |
} | |
); |
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 -e | |
for fromFile in *.wma; do | |
newName=`basename "$fromFile" .wma` | |
ffmpeg -i "./$fromFile" -acodec mp3 -ab 160k -map 0:0 "${newName}.mp3" | |
done |
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
> bufferutil@1.1.0 install /home/pi/sandbox/lm35dz/node_modules/bufferutil | |
> node-gyp rebuild | |
install:nan ▌ ╢████████████████████████████████████████████████████████████████████████████████████████ make: Entering directory '/home/pi/sandbox/lm35dz/node_modules/bufferutil/build' | |
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o | |
In file included from ../src/bufferutil.cc:16:0: | |
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’ | |
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) { | |
^ | |
../../nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here |
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
use strict; | |
use warnings; | |
use utf8; | |
use Carp; | |
use AnyEvent; | |
use IO::File; | |
use 5.020; | |
my $cv = AE::cv; |
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
//appendすると動く(遷移する) | |
var a = document.createElement('a'); | |
a.href = "http://www.nhk.or.jp" | |
document.body.appendChild(a); | |
a.click(); |
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
//Firefoxで動かない(遷移しない) | |
var a = document.createElement('a'); | |
a.href = "http://www.nhk.or.jp" | |
a.click(); |
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 obj1 = { | |
a: "one", | |
b: "two", | |
c: "three" | |
}; | |
var obj2 = { | |
0: "one", | |
1: "two", | |
2: "three" |
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
" ディクショナリ作成 | |
let mydic = { "one": "une", "two": "deux" } | |
" 追加 | |
let mydic.three = "trois" | |
echo mydic | |
" 削除 | |
call remove(mydic, "two") | |
echo mydic |
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
let mydic = { "one": "une", "two": "deux" } | |
let mydic["three"] = "trois" | |
echo mydic |
NewerOlder