NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| # | |
| # This is the main Apache HTTP server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
| # In particular, see | |
| # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
| # for a discussion of each configuration directive. | |
| # | |
| # Do NOT simply read the instructions in here without understanding | |
| # what they do. They're here only as hints or reminders. If you are unsure |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| <?php | |
| /** | |
| * Iterator to generate sequential passwords within a given length range. | |
| */ | |
| class PasswordIterator implements Iterator | |
| { | |
| /** | |
| * Length of the next password to be generated | |
| * @var int | |
| */ |
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
This will enable Sass+Compass with LiveReload through Guard. (Guard screen cast)
You will also need a browser component to communicate with LiveReload. (browser extension, livereload.js)
If you prefer going through a GUI, that option is available. The following instructions is specific to Mac OS X and it works through the command line.
Note that this is not specific to Rails projects. This can work for any standalone front-end project.
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| server { | |
| listen 80 default_server; | |
| server_name domain.com *.domain.com; | |
| root /srv/www/domain.com/public; | |
| access_log /srv/www/domain.com/log/access.log; | |
| error_log /srv/www/domain.com/log/error.log; | |
| location / { | |
| index index.php; |
| # Set the prefix to ^A. | |
| unbind C-b | |
| set -g prefix ^A | |
| bind a send-prefix | |
| # Bind appropriate commands similar to screen. | |
| # lockscreen ^X x | |
| unbind ^X | |
| bind ^X lock-server | |
| unbind x |
| group :development, :test do | |
| gem 'jasmine', '1.2.0.rc2', :git => 'https://github.com/pivotal/jasmine-gem.git', :require => false | |
| # gem 'jasmine' | |
| gem 'headless', :require => false | |
| bundle install | |
| bundle exec jasmine init | |
| rm lib/tasks/jasmine.rake |