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
| = link_to '/manage/#/inventory/items', class: 'tile icon bg-color-green' do | |
| .tile-content | |
| %h1.icon-large.icon-box | |
| .brand Items |
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
| .help-section | |
| %h4 Getting Started | |
| %ul | |
| %li | |
| = link_to "/help/account_settings", class: 'menu-item' do | |
| %span Account Registration | |
| .next-arrow |
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
| This file contains any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by cpuminer configure 2.2.3, which was | |
| generated by GNU Autoconf 2.69. Invocation command line was | |
| $ ./configure CFLAGS=-03 | |
| ## --------- ## | |
| ## Platform. ## |
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
| class Asset | |
| if Rails.environment.production? | |
| has_mongoid_attached_file :image, styles: {}, storage: :s3, s3_credentials: 'blah' # etc... | |
| else | |
| has_mongoid_attached_file :image, styles: {} | |
| end | |
| end |
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 User = RestfulModel.generate('User', ['name', 'age']); | |
| var user = new User({name: 'Michael', age: '34', dob: '06/03/1978'}); |
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
| class ProtectedController << ApplicationController | |
| before_filter :force_user | |
| def index | |
| end | |
| private | |
| def force_user | |
| unless session[:user_id] | |
| session[:redirect_url] = request.fullpath | |
| redirect_to new_sessions_path |
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
| class @FileUploader | |
| constructor: (@dropAreaSelector, @resultAreaSelector, @ajaxUrl) -> | |
| dropArea = document.querySelectorAll(@dropAreaSelector)[0] | |
| dropArea.addEventListener 'dragenter', @noop, false | |
| dropArea.addEventListener 'dragexit', @noop, false | |
| dropArea.addEventListener 'dragover', @noop, false | |
| dropArea.addEventListener 'drop', @dropFiles, false | |
| selectArea = document.getElementById('file-input') |
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.zshrc | |
| . ~/.zshrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-v0.2.3.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install | |
| wget http://npmjs.org/install.sh | sh |
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
| class Manage::SalesController << ManageController | |
| before_filter :find_sale, except: [:new, :complete] | |
| before_filter :force_order_has_user, except: [:new, :create] | |
| # ... | |
| private | |
| def force_order_has_user | |
| unless @order.user | |
| redirect_to [:manage, @order, :user] | |
| end | |
| end |
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
| Spine = require('spine') | |
| class Clicky extends Spine.Controller | |
| className: 'clicky' | |
| events: | |
| 'click .clicky': 'clickity' | |
| constructor: -> | |
| super |