Skip to content

Instantly share code, notes, and snippets.

View kashewnuts's full-sized avatar

Kashun YOSHIDA kashewnuts

View GitHub Profile
@shimizukawa
shimizukawa / console
Created January 18, 2012 00:04
エキPy読書会2nd #3 スクリーン
>>> a = range(10)
>>> import itertools
>>> b, c = itertools.tee(a)
>>> a2 = iter(a)
>>> b, c = itertools.tee(a2)
>>> next(b)
0
>>> next(b)
1
>>> next(b)
@shimizukawa
shimizukawa / gist:2028865
Created March 13, 2012 13:48
エキPy読書会2nd #4 スクリーン
$ python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> int
<type 'int'>
>>> type(10)
<type 'int'>
>>> dir(10)
['__abs__', '__add__', '__and__', '__class__', '__cmp__', '__coerce__', '__delattr__',
@Gab-km
Gab-km / github-flow.ja.md
Last active October 29, 2024 10:17 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@mattratleph
mattratleph / vimdiff.md
Last active October 16, 2024 17:26 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@sweiss3
sweiss3 / git_checkout.lua
Created March 29, 2014 17:22
A clink script for supporting tab-completion of git branches when using "git checkout"
function git_checkout_match_generator(text, first, last)
found_matches = false;
if rl_state.line_buffer:find("^git checkout ") then
has_start_branch = not rl_state.line_buffer:find("^git checkout[ ]*$")
for line in io.popen("git branch 2>nul"):lines() do
local m = line:match("[%* ] (.+)$")
if m then
if not has_start_branch then
clink.add_match(m)
@exoego
exoego / 転職先に訊きたいチェックリスト.md
Last active May 25, 2024 15:30
転職活動してて訊きたいことのメモ

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 残業代…
  • 早朝/深夜手当…
  • 休出手当…
  • 住宅補助…
@mgedmin
mgedmin / rst-vim.md
Last active March 19, 2021 09:06
ReStructuredText + vim = ?

A list of interesting GH repos:

let mapleader=","
set surround
set easymotion
set multiple-cursors
set ignorecase
set smartcase
"set selection=exclusive
" https://youtrack.jetbrains.com/issue/VIM-765#comment=27-4264908
@zchee
zchee / actionlist.vim
Last active November 19, 2024 07:46
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@xjamundx
xjamundx / blog-webpack-2.md
Last active November 7, 2024 13:10
From Require.js to Webpack - Part 2 (the how)

This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.

In that post I talked about 3 main reasons for moving from require.js to webpack:

  1. Common JS support
  2. NPM support
  3. a healthy loader/plugin ecosystem.

Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.