Skip to content

Instantly share code, notes, and snippets.

@yatsu
yatsu / deep_merge.py
Created April 28, 2018 13:43
Python dict deep merge
from copy import deepcopy
from functools import reduce
def deep_merge(*dicts, update=False):
"""
Merges dicts deeply.
Parameters
----------

bashの色設定

#how to use
#echo -e "${COLOR_YELLOW} test test ${COLOR_END}"
COLOR_ESC="\e["
COLOR_ESCEND="m"
COLOR_END="${COLOR_ESC}${COLOR_ESCEND}"
@ryanflorence
ryanflorence / Collection.coffee
Created September 30, 2012 03:03
Sub-classing Array with CoffeeScript
class Collection extends Array
constructor: (items...) ->
@splice 0, 0, items...
sum: -> @reduce (sum, n) -> sum + n
# colorize
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# set default editor to vi
export SVN_EDITOR=vim
# remove duplicate entries in bash history
export HISTIGNORE="&:[bf]g:exit"
@subtleGradient
subtleGradient / position-fixed.css
Created July 29, 2009 16:17
Make position:fixed work in IE6
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 30, 2024 12:48
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶