Skip to content

Instantly share code, notes, and snippets.

View mac-like.ahk
#InstallKeybdHook
#UseHook
SetKeyDelay 0
; Emulate command key
!x::Send, ^x
!c::Send, ^c
!v::Send, ^v
!z::Send, ^z
View .tmux.conf
### Set prefix key to Ctrl-z
unbind C-b
set-option -g prefix C-t
bind C-t send-prefix
# set-option -g prefix C-b
# bind C-b send-prefix
### Vi style key binding
set-window-option -g mode-keys vi
View keybindings.json
[
// Move cursor to top (Shift + <)
{
"key": "shift+cmd+,",
"command": "-editor.action.inPlaceReplace.up",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+,",
"command": "cursorTop",
View settings.json
{
"editor.fontSize": 13,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"files.autoSave": "afterDelay"
}
View howm2memolife.js
const fs = require('fs')
const path = require('path')
const howmDir = '/Users/kambara/Desktop/howm'
const memoDir = '/Users/kambara/Desktop/memo'
function main() {
if (!fs.existsSync(memoDir)) {
fs.mkdirSync(memoDir)
}
@kambara
kambara / template.js.coffee
Created Apr 4, 2012
template class definition using CoffeeScript and Backbone
View template.js.coffee
#= require another_class
#= require_tree ./models
#= require_tree ./views
window.my_app ?= {}
#####
# Model
#####
@kambara
kambara / gist:1516989
Created Dec 24, 2011
JavaScript: DateTimeで 2011/1/25 10:02:30 みたいに日付表示
View gist:1516989
[[date.getYear(),
date.getMonth(),
date.getDate(),
].join('/'),
[date.getHours(),
date.getMinutes(),
date.getSeconds()
].join(':')
].join(' ');
@kambara
kambara / .gitignore
Created Jun 6, 2011
.gitignore for FlashBuilder Project
View .gitignore
.settings
bin-debug
You can’t perform that action at this time.