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 words:String = "foo bar"; | |
| var PH_oldArray:Array = words.split(" "); | |
| var PH_newArray:Array = []; | |
| var param1:String = ""; | |
| for each(var word:String in PH_oldArray) | |
| { | |
| PH_newArray.push(word.charAt(0).toUpperCase() + word.slice(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
| var PH_oldstr:String = "foo bar"; | |
| var PH_oldArray:Array = "foo bar".split(" "); | |
| var PH_newArray:Array = []; | |
| for each(var word in PH_oldArray) | |
| { | |
| PH_newArray.push(word.charAt(0).toUpperCase() + word.slice(1)); | |
| } | |
| param1 = PH_newArray.join(" "); |
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
| export RBENV_VERSION=2.3.x | |
| .PHONY: test clean | |
| clean: | |
| rm -rf ci4 | |
| .bundle_install: | |
| bundle install | |
| touch .bundle_install |
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
| ## ruby-build | |
| Installation of Ruby is managed with a tool called `ruby-install` | |
| Install ruby-install: | |
| brew install ruby-install | |
| Install a Ruby: |
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
| Script started on Tue Sep 8 18:28:31 2015 | |
| [?1034hbash-3.2$ nix-shell | |
| these derivations will be built: | |
| /nix/store/c7as6qpcysyl0s6820nzcjc0y9n9h3m9-zlib-1.2.8.drv | |
| /nix/store/v16mzzb4dajbj3d13f5fl9sdy1b3ds4i-perl-5.20.2.drv | |
| /nix/store/qrajznbph77yw7ishi9nvkwd7p95qjqf-openssl-1.0.1p.drv | |
| /nix/store/p8910w78lvkjjb2ywqb50fxyzd4v6705-libssh2-1.6.0.drv | |
| /nix/store/6bj1h78vlx4zrjdaadj9wvyg5c6jmd0m-curl-7.43.0.drv | |
| /nix/store/2rxp8yj0mjf0wwpvp3hdi5bs0n94amhh-xz-5.2.1.tar.bz2.drv | |
| /nix/store/6gjvcw8f6sf6kal1zf06jh1z5ygg78dh-xz-5.2.1.drv |
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
| Script started on Tue Aug 25 00:42:05 2015 | |
| [?1034hbash-3.2$ nix-env -u | |
| upgrading ‘go-1.4.2’ to ‘go-1.5’ | |
| these derivations will be built: | |
| /nix/store/jqgqfv3i61c5pi2f2vxar41k80fajmad-go-1.5.drv | |
| building path(s) ‘/nix/store/mdr97g1h7h3gbdink43jq4v21nf3nybv-go-1.5’ | |
| unpacking sources | |
| unpacking source archive /nix/store/n3gmppw3dwfvdgf1akz3nm2qml6bypbk-go1.5.tar.gz | |
| source root is go-go1.5 | |
| patching sources |
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
| Deleted tag 'v1.9.8' (was 86982a6) | |
| Deleted tag 'v1.9.9' (was bf1239b) | |
| output path ‘/nix/store/60ima6a5lr9m3giyhq8q488xgkbhzi1w-bundler-a2343c9’ should have r:sha256 hash ‘1vzm21fc37w89psxfk2fzi64zyb3gyhzr9smd6jk2r2kvgp6d38b’, instead has ‘1p7kzhmicfljy9n7nq3qh6lvrsckiq76ddypf6s55gfh1l98z4k9’ | |
| cannot build derivation ‘/nix/store/d98jh4mlqkas0ccxnlq32skjhdv600lf-ruby-2.1.3-p0-bundler-2015-01-11.drv’: 1 dependencies couldn't be built | |
| cannot build derivation ‘/nix/store/kkc6rf9mzpad17skjy7mdh1l8i8lwv42-bundix.drv’: 1 dependencies couldn't be built | |
| error: build of ‘/nix/store/kkc6rf9mzpad17skjy7mdh1l8i8lwv42-bundix.drv’ failed |
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
| Script started on Thu Aug 20 14:23:12 2015 | |
| bash-3.2$ nix-env -i bundix | |
| installing ‘bundix’ | |
| these derivations will be built: | |
| /nix/store/d9yr45klc92kkymv1f0zi0c58qv2x3rg-sources.rb.drv | |
| /nix/store/jy56m5p278ycfrk4wk4pf6mdx94dc2v6-json2rb.drv | |
| /nix/store/hhbr95km7ldz4hp1vsj1hs3af4d9bx60-gemset.rb.drv | |
| /nix/store/1g1v8m5hq7vzpd9bachb7r94vi6n5i2a-sources.rb.drv | |
| /nix/store/49qwz0kbdm6l3skgfgznz88pjaz4n9ym-mirrors-list.drv | |
| /nix/store/gx9r16r4apg7arrijj2vqginvlgw8wfc-rubygems-2.4.1.tgz.drv |
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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set rtp+=~/.vim/bundle/Vundle.vim/ | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| " My Plugins | |
| Plugin 'altercation/vim-colors-solarized' |
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 'minitest/autorun' | |
| class TestFoo < Minitest::Test | |
| def test_args | |
| assert(working_call(named1: 'biz', named2: 'baz', obj_hash: { foo: 'bar' })) | |
| assert(crash_call(named1: 'biz', named2: 'baz', obj_hash: { foo: 'bar' })) | |
| end | |
| def working_call(named1: nil, named2: nil, obj_hash: {}) |