brew install elixir
# maybe others, I don't remember
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
| gem install nokogiri -- \ | |
| --use-system-libraries \ | |
| --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 |
| javascript: (function() { $('.passage-resources').hide(); $('.search-section').hide(); $('header').hide(); $('.sys-announce').hide(); $('footer').hide(); $('.sidebar-main').hide(); $('.passage').css({margin: 0}); $('.passage-resources-link.open-link').hide(); $('.passage-main-wrap').css('margin-left', '0'); })() |
Create rails app:
$ rails new <project-name> -T -d mysql
Add to Gemfile:
gem “rspec”
gem "haml-rails"
Install packages:
| gem install nokogiri -v '1.6.7.2' -- \ | |
| --with-xslt-dir=/usr/local/opt/libxslt \ | |
| --with-zlib-dir=/usr/local/opt/zlib \ | |
| --with-xml2-dir=/usr/local/opt/libxml2 |
| (function() { | |
| var rotationInDegrees = 0; | |
| function rotateThePodPleaseHal() { | |
| rotationInDegrees += 5; | |
| document.getElementsByTagName('body')[0].style.transform = 'rotate3d(1, 0, 1, ' + rotationInDegrees + 'deg)'; | |
| if (rotationInDegrees < 360) { | |
| setTimeout(rotateThePodPleaseHal, 10); | |
| } | |
| } |
| # create project space | |
| mkdir -p <path-to-project> | |
| cd <path-to-project> | |
| # initialize your environment | |
| git init | |
| npm init | |
| bower init | |
| # install app dependencies |
| $HEADER$namespace $NAMESPACE$ | |
| { | |
| [NUnit.Framework.TestFixture] | |
| public class $CLASS$ | |
| { | |
| private $TestObjectType$ _testObject; | |
| [NUnit.Framework.SetUp] | |
| public void SetUp() | |
| { |
| println InetAddress.localHost.canonicalHostName |
| # goes into ~/.inputrc or /etc/inputrc | |
| "\e[1;5C": forward-word | |
| "\e[1;5D": backward-word | |
| "\e[5C": forward-word | |
| "\e[5D": backward-word | |
| "\e\e[C": forward-word | |
| "\e\e[D": backward-word |