Skip to content

Instantly share code, notes, and snippets.

View kaave's full-sized avatar

Kyousuke Abe kaave

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@kaave
kaave / index.html
Created April 19, 2016 22:56
bl.ocks.org test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
HELLO bl.ocks.org
</body>
</html>
@kaave
kaave / Vagrantfile
Created April 22, 2016 22:38
Vagrant rsync setting for Phoenix Framework
Vagrant.configure(2) do |config|
config.vm.synced_folder './sync',
'/var/sync',
type: 'rsync',
# 標準の設定から[--delete]のみ除外
rsync__args: ['--verbose', '--archive', '-z', '--copy-links'],
rsync__exclude: ['.DS_Store', '.git/', 'deps/', '_build/', 'node_modules/']
end
@kaave
kaave / keymap.c
Last active August 15, 2016 23:24
My Ergodox keymap
// Netable differences vs. the default firmware for the ErgoDox EZ:
// 1. The Cmd key is now on the right side, making Cmd+Space easier.
// 2. The media keys work on OSX (But not on Windows).
#include "ergodox_ez.h"
#include "debug.h"
#include "action_layer.h"
#define BASE 0 // default layer
#define SYMB 1 // symbols
#define MDIA 2 // media keys
@kaave
kaave / tagtool.py
Created September 20, 2016 13:27
Add Get method to Felica reader sample code
def show_tag(self, tag):
# print tags
print(tag)
# create url values
url_values = urllib.urlencode({"read": tag})
# create request url
url = "http://localhost:8000/?" + url_values
print(" Request to: " + url)
@kaave
kaave / xmonad.hs
Created May 16, 2017 05:57
Xmonad config (tmp)
import XMonad
import XMonad.Hooks.EwmhDesktops -- for chrome's fullscreen mode
--
-- import XMonad.Config.Desktop
--
-- baseConfig = desktopConfig
main = do
xmonad $ defaultConfig
{ terminal = myTerminal

Keybase proof

I hereby claim:

  • I am kaave on github.
  • I am kaave (https://keybase.io/kaave) on keybase.
  • I have a public key ASCHIHL5CDGn3xsP32QTFHbG0kb74COOQauLiBq4Tc_IJwo

To claim this, I am signing this object:

@kaave
kaave / .eslintignore
Created March 26, 2019 13:07
eslint with prettier, typescript, react, airbnb
**/*.d.ts
@kaave
kaave / addtype.bash
Last active March 28, 2019 10:47
WebMidi: get inputs sample
yarn add -D @types/webmidi
@kaave
kaave / fn.ts
Created July 3, 2019 03:38
Cloud Functionsから認証付きのCloud Firestoreを突破
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
const validReferrers = [
'http://localhost:9012',
];
admin.initializeApp(functions.config().firebase);
const db = admin.firestore();