Skip to content

Instantly share code, notes, and snippets.

mix3@サタデーナイトフィーバー mix3

Block or report user

Report or block mix3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View github.css
#preview body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
#preview body > *:first-child {
@mix3
mix3 / main.go
Created Mar 8, 2014
Callerによるパス解決サンプル
View main.go
package main
import (
"encoding/json"
"io/ioutil"
"log"
"os"
"path"
"runtime"
)
View main_test.go
package main
import (
"fmt"
"runtime"
"sync"
"testing"
)
type ChMutex struct {
View gist:8037d5645c738a27755d
package main
import (
"fmt"
"log"
"reflect"
"runtime"
"sync"
"testing"
)
@mix3
mix3 / chanpool.go
Created Jul 17, 2014
mutexを使いつつchannelが空かそうでないかで処理を分ける
View chanpool.go
package main
import (
"log"
"math/rand"
"sync"
"time"
)
type ChanPool struct {
View gist:4635096459a4b4774905
$ git diff
diff --git a/sqlite3.go b/sqlite3.go
index ac888fb..3ccfef8 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -94,8 +94,7 @@ type SQLiteConn struct {
}
type config struct {
- params map[string]string
@mix3
mix3 / gist:8c10a0bae16e547ca145
Created Sep 3, 2014
おそらくIRCでボットにtumblrの画像URLを貼らせるためにMakefile.PLに入ってるんだろうけど、そのせいでめっちゃ警告みたいなの出てて笑ってる
View gist:8c10a0bae16e547ca145
--> Working on WWW::Tumblr
Fetching http://www.cpan.org/authors/id/D/DA/DAMOG/WWW-Tumblr-5.1.tar.gz ... OK
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.dev' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.ino' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.nlink' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.dev' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.ino' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.nlink' を無視
/bin/tar: 未知の拡張ヘッダキーワード `LIBARCHIVE.creationtime' を無視
/bin/tar: 未知の拡張ヘッダキーワード `SCHILY.dev' を無視
@mix3
mix3 / dbic_schema_to_plantuml.pl
Created Oct 23, 2014
DBICのスキーマから適当にplantuml用の出力を得るスクリプト
View dbic_schema_to_plantuml.pl
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Plack::Util;
use Data::Section::Simple qw(get_data_section);
use Text::MicroTemplate qw(render_mt);
@mix3
mix3 / gas.js
Last active Aug 29, 2015
組み合わせを整数で設定出来る様にしたときの、整数が何に該当するか確認出来るようにするためのGAS
View gas.js
function mylookup(arg, range, val, blk) {
if (!blk) {
blk = " ";
}
var max = range[int(range.length-1)][0] * 2;
if (max <= arg) {
return "range over";
}
var ret = [];
var key = 1;
View gist:ece610942c114c1ce4b5
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
sub hoge {
return;
}
You can’t perform that action at this time.