This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ns = (function(exports) { | |
var Raise = function constructor() { | |
this._init_handler = function(func) { | |
window.addEventListener('load', func); | |
}; | |
}; | |
Raise.prototype.register = function(id) { | |
var to_top = function(e) { | |
var scroll_top = document.documentElement.scrollTop || document.body.scrollTop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
from guppy import hpy | |
class measure_heap(object): | |
''' | |
メモリ消費量を測定する。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require: npm install nib | |
@import 'nib/vendor' | |
support-for-ie = false // disable old browser support | |
topstand-triangle() | |
width: 0 | |
height: 0 | |
border-top: 25px solid bg-color | |
border-left: 20px solid transparent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, division, absolute_import, unicode_literals, ) | |
import polib | |
from polib import POEntry | |
def __eq__(self, other): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh -u | |
set -e | |
readonly DEFAULT_USER='hachibeeDI' | |
if [ $# -ge 2 ]; then | |
echo 'too much arguments' | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc | |
bin/ | |
include/ | |
lib/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, division, absolute_import, unicode_literals, ) | |
def _snake_to_camel(text): | |
letters = list(text) | |
def _conv(l1, l2): | |
if l1[-1] == '_': | |
return l1.replace('_', '') + l2.upper() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
papers = [80, 10, 20, 30, 71, 69, 100] | |
result = papers.reduce( | |
{passing: [], rejected: [], } | |
) do |boxes, paper| | |
if paper >= 70 then boxes[:passing] else boxes[:rejected] end << (paper) | |
boxes | |
end | |
p result | |
# => {:passing=>[80, 71, 100], :rejected=>[10, 20, 30, 69]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive: yes */ | |
/* <system section="theme" selected="bordeaux"> */ | |
@import "/css/theme/bordeaux/bordeaux.css"; | |
/* </system> */ | |
/* elements {{{ */ | |
/* <system section="background" selected="490A3D"> */ | |
body{ | |
background-color: #2dadac; | |
color: #fff6d3; |