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
| # peco | |
| function fish_user_key_bindings | |
| bind \cr peco_select_history | |
| end | |
| # set -x EDITOR 'atom' | |
| # Mac は LS_COLORS, Ubuntu等は LSCOLORS | |
| export LS_COLORS='di=36:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' | |
| export LSCOLORS=gxfxcxdxbxegedabagacad |
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
| kumamoto@kumamotontu:~/iGAN$ THEANO_FLAGS='device=cpu, floatX=float32, nvcc.fastmath=True, optimizer_excluding=cudnn' python iGAN_main.py --model_name outdoor_64 | |
| [n_iters] = 40 | |
| [top_k] = 16 | |
| [average] = False | |
| [morph_steps] = 16 | |
| [model_file] = ./models/outdoor_64.dcgan_theano | |
| [d_weight] = 0.0 | |
| [interp] = linear | |
| [batch_size] = 64 | |
| [framework] = theano |
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
| enum Hoge { | |
| case normal | |
| case `nil` | |
| case `self` | |
| case `dynamicType` | |
| case `Type` | |
| case `Protocol` | |
| } | |
| print(Hoge.normal) // normal |
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
| <?xml version="1.0"?> | |
| <packages> | |
| <package id="GoogleChrome" /> | |
| <package id="Firefox" /> | |
| <package id="Opera" /> | |
| <package id="googlejapaneseinput" /> | |
| <package id="flashplayerplugin" /> | |
| <package id="foobar2000" /> | |
| <package id="everything" /> | |
| <package id="listary" /> |
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
| import UIKit | |
| protocol SwipeReturnable { | |
| func addSwipeReturnGesture() | |
| } | |
| extension SwipeReturnable where Self: UIViewController { | |
| func addSwipeReturnGesture() { | |
| let gestureToRight = UISwipeGestureRecognizer(target: self, action: #selector(self.swipeBack)) | |
| gestureToRight.direction = .Right |
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
| Dir::glob("./*.scss").each { |filename| | |
| filename.slice!(".scss") | |
| system("sass-convert #{filename}.scss #{filename}.sass") | |
| system("rm ./#{filename}.scss") | |
| puts ("converted #{filename}.scss to #{filename}.sass") | |
| } |
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
| private void method(ArrayList<String> arg){ | |
| arg = new ArrayList<String>(); | |
| arg.add("PHP"); | |
| } | |
| ArrayList<String> list = new ArrayList<String>(); | |
| list.add("Java"); | |
| method(list); | |
| System.out.println(list); // [Java] |
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
| private void method(ArrayList<String> arg){ | |
| arg = new ArrayList<String>(); | |
| arg.add("PHP"); | |
| } | |
| ArrayList<String> list = new ArrayList<String>(); | |
| list.add("Java"); | |
| method(list); | |
| System.out.println(list); // [Java] |
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
| private void method(ArrayList<String> arg){ | |
| arg = new ArrayList<String>(); | |
| arg.add("PHP"); | |
| } | |
| ArrayList<String> list = new ArrayList<String>(); | |
| list.add("Java"); | |
| method(list); | |
| System.out.println(list); // [Java] |
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
| /* | |
| * CostEstmator | |
| * JOIN順序を返す | |
| */ | |
| var _ = require('lodash'); | |
| var stats = [ | |
| { | |
| id: "p", | |
| viewname: "product", |