Skip to content

Instantly share code, notes, and snippets.

View vvakame's full-sized avatar
💭
❤️ 🐈

Masahiro Wakame vvakame

💭
❤️ 🐈
View GitHub Profile

わからないエラーが出る。

$ go run main.go                                                                                                   1 ↵
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2167]

goroutine 1 [running]:
panic(0x8ef00, 0xc42000a0c0)
	/usr/local/opt/go/libexec/src/runtime/panic.go:500 +0x1a1
@vvakame
vvakame / .gitignore
Last active September 11, 2016 14:37
*.js
$ git clone https://gist.github.com/d606a83767959473d8a90f5facde8919.git
$ cd d606a83767959473d8a90f5facde8919
$ curl https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/b66d6115d7a8cd74af45e59d36c4447e5d1e9a52/node/node.d.ts > node.d.ts
$ npm install && npm run test

{ fileName: 'test.ts',
  options:
   { IndentSize: 4,
     TabSize: 4,
"use strict";
// $ curl https://events.google.com/io2016/api/v1/schedule > schedule.json
let json = require("./schedule.json");
let sessions = json.sessions;
let headers = [];
sessions.forEach(data => {
headers = headers.concat(Object.keys(data).filter(key => headers.indexOf(key) === -1));
@vvakame
vvakame / README.md
Last active May 13, 2016 15:35
ErgoDoz EZでLang1, Lang2が使えない件

qmk_firmwareを読み解く

わしゃ 英数/かな キーがどうしても使いたいんじゃ…!

用語メモ

  • LUFA - the Lightweight USB Framework for AVRs

気になる所メモ

@vvakame
vvakame / README.md
Created March 2, 2016 01:58
BigQueryのDatasetの中のTable全部消すマン

事前準備

$ gcloud components update
$ brew install gnu-sed

がんばる

@vvakame
vvakame / review-ext.rb
Last active January 12, 2016 15:02
html5expertにサイトに投稿する時の独自フォーマットめんどいので頑張らなくても変換できるようにした
# encoding: utf-8
module ReVIEW
class MARKDOWNBuilder
def emlist(lines, caption = nil, lang = nil)
print %Q[<pre class="lang:default decode:true" title="#{caption}">]
lines.each do |line|
puts detab(line)
end
puts "</pre>"
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
// A task runner that calls the Typescript compiler (tsc) and
// Compiles a HelloWorld.ts program
@vvakame
vvakame / article.re
Created December 30, 2015 09:36
サンプルコードを自動的にPlaygroundで試せるようにするリンク生成する方法思いついた
= クッソ捗る
#@mapoutput(node tsToPlayground.js ./code/ts/letAndConst.ts)
#@end
で、@<code>{review-preproc -r article.re} とかやる。