FATAL - HttpRouter::DoubleCompileError - HttpRouter::DoubleCompileError:
(gem) http_router-0.10.2/lib/http_router/route.rb:243:in `add_path_to_tree'
(gem) http_router-0.10.2/lib/http_router/route.rb:47:in `to'
(gem) padrino-core-0.10.7/lib/padrino-core/application/routing.rb:409:in `block (2 levels) in compiled_router'
(gem) padrino-core-0.10.7/lib/padrino-core/application/routing.rb:409:in `block in compiled_router'
(gem) padrino-core-0.10.7/lib/padrino-core/application/routing.rb:409:in `compiled_router'
(gem) padrino-core-0.10.7/lib/padrino-core/application/routing.rb:919:in `route!'
(gem) padrino-core-0.10.7/lib/padrino-core/application/routing.rb:909:in `dispatch!'
(gem) sinatra-1.3.6/lib/sinatra/base.rb:794:in `block in call!'
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
| - hosts: localhost | |
| connection: local | |
| gather_facts: no | |
| sudo: no | |
| vars: | |
| homebrew_taps: | |
| - homebrew/binary | |
| - homebrew/dupes | |
| - caskroom/cask | |
| - railwaycat/emacsmacport |
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
| fizzbuzz = fn | |
| {true, true} -> 'FizzBuzz' | |
| {true, false} -> 'Fizz' | |
| {false, true} -> 'Buzz' | |
| {false, false} -> nil | |
| end | |
| 1..100 |> Enum.each fn(n) -> | |
| case fizzbuzz.({rem(n, 3) == 0, rem(n, 5) == 0}) do | |
| nil -> n |
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
| g = require 'gulp' | |
| $ = require 'gulp-load-plugins' | |
| nodemon = require 'gulp-nodemon' | |
| mocha = require 'gulp-mocha' | |
| browserSync = require 'browser-sync' | |
| g.task 'browserSync', ['nodemon'], -> | |
| browserSync.init null, { | |
| files: ['public/**/*.*', 'views/**/*.*', 'routes/**/*.*'], |
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
| function peco-select-git-branch | |
| set -l query (commandline) | |
| if [ (count $query) = 0 ] | |
| set peco_flag --layout=bottom-up | |
| else | |
| set peco_flag --layout=bottom-up --query "$query" | |
| end | |
| git rev-parse --git-dir >/dev/null 2>&1 |
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
| function peco-select-ghq-repository | |
| set -l query (commandline) | |
| if [ -n $query ] | |
| ghq list -p | peco --query $query | read line | |
| else | |
| ghq list -p | tail -r | peco | read line | |
| end | |
| if [ $line ] |
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
| # Path to Oh My Fish install. | |
| set -gx OMF_PATH /Users/iori/.local/share/omf | |
| # Customize Oh My Fish configuration path. | |
| #set -gx OMF_CONFIG /Users/iori/.config/omf | |
| # Load oh-my-fish configuration. | |
| source $OMF_PATH/init.fish | |
| # Theme |
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
| function peco-select-history | |
| set -l query (commandline) | |
| if [ -n $query ] | |
| history | tail -r | peco --query $query | read line | |
| else | |
| history | tail -r | peco | read line | |
| end | |
| if [ $line ] |
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
| function q(s){p= | |
| /\/\*([^]+)(@@ |\*\/)/;//@@@ | |
| return(s+'@#@#'). match(p)[1].replace(/ |\s+/g,[''][+0]). | |
| replace(/\x24/g,'\x20');}eval(s=q(function(){/*s="function$q(s){p=/ | |
| \\/\\*([^]+)(@@|\\*\\/)/;//@@@return(s+'@#@#').match(p)[1].replace( | |
| /|\\s+/g,[''][+0]).replace(/\\x24/g,'\\x20');}eval(s=q(function(){/ | |
| \*"+s.replace(/$/g,'\x24')+"*\/}))";s="x8z0e8|wez04d|wh7l5h|wz0w|wz | |
| 0w|wz0w|wz0w|wz0v|wz0x|uz0z02|sz0z06|rz0z08|qz0z0a|qiz09i|qfz0ff|q | |
| ez0id|qbb4t59b|qb98q79a|r9a8p989|s8a8p989|5w98q79q|05o8b4t59cfb|9k18 | |
| r3q93h|36n7r1r8l7|21u8m151m8|z9k5l8|z03az03a|z07ifh|o222iz02|q7lp|u312gu |
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
| x=y=0.0 | |
| gets.to_i.times do | |
| t,s=gets.split.map(&:to_i) | |
| case t | |
| when 1 | |
| x+=s | |
| when 2 | |
| y+=s | |
| when 3 |