Skip to content

Instantly share code, notes, and snippets.

kambara kambara

Block or report user

Report or block kambara

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 settings.json
{
"editor.fontSize": 13,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"files.autoSave": "afterDelay"
}
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 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)
}
View zip-dirs.sh
#!/bin/sh
cd $1
ls -F | grep / |
while read dirname
do
dirname=`echo "$dirname" | sed -e 's/\///'`
echo -----------------------
echo $dirname
@kambara
kambara / .tmux.conf
Last active Dec 20, 2015
.tmux.conf
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
@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.