- Make sure you have yo installed:
npm install -g yo - Run:
yo webapp - Install grunt-contrib-jade:
npm install grunt-contrib-jade --save-dev
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 AuthMailer < Devise::Mailer | |
| require 'rubygems' | |
| require 'send_with_us' #after installing sendwithus_ruby gem, require the send_with_us.rb initializer file | |
| helper :application # gives access to all helpers defined within `application_helper`. | |
| include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url` | |
| default from: "you@example.com" | |
| def confirmation_instructions(record, token, opts={}) |
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
| <div id="main" role="main"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="span12" id="top-div"> <!--! added "top-div" id to help with ajax --> | |
| <%= render 'layouts/messages' %> | |
| <%= yield %> | |
| </div> | |
| </div> | |
| <footer> | |
| </footer> |
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
| <form accept-charset="UTF-8" action="/payment" class="cardInfo" method="post"> | |
| <fieldset class="cardInfo__cardDetails"> | |
| <div class="form-row cardInfo__cc-num"> | |
| <label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label> | |
| <div class="cc-num__wrap"> | |
| <!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting --> | |
| <input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required"> | |
| <span class="card" aria-hidden="true"></span> |
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
| 'use strict'; | |
| module.exports = function(grunt) { | |
| // load all grunt tasks | |
| require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
| // configurable paths | |
| var paths = { |
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
| angular.module('restangularDemoApp', [ | |
| 'restangular', | |
| 'ngCookies' | |
| ]) | |
| .constant('apiKey', 'YOUR_Mongolab_API_KEY') | |
| .config(function(RestangularProvider, apiKey) { | |
| RestangularProvider.setBaseUrl('https://api.mongolab.com/api/1/databases/YOURDATABASE/collections'); | |
| RestangularProvider.setDefaultRequestParams({ | |
| apiKey: apiKey | |
| }) |
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
| /** @jsx React.DOM */ | |
| define([ | |
| 'underscore', 'jquery', 'react', 'platform/uuid' | |
| ], function (_, $, React, uuid) { | |
| 'use strict'; | |
| /** | |
| * SwitchBox control (checkbox with special markup to look like a light switch). | |
| * Can be configured with an optional `onChange` prop to effect state up the tree. | |
| */ |
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
| #!/usr/bin/env ruby | |
| # Used to perform multiple requests of urls for benchmarking | |
| # | |
| # @example | |
| # # Requests the url 3 times outputting times for each | |
| # ./benchmark_url 3 http://my.url.com | |
| # ruby benchmark_url 3 http://my.url.com | |
| # | |
| # # Requests each url 5 times outputting times for each |
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
| <?php | |
| /** | |
| * Scrape the number of app reviews from iTunes. | |
| * | |
| * Set the iOS app id and the number of pages to scrape, and it creates a {$app_id}-reviews.csv file | |
| * | |
| * @author Kent Bye <kent@kentbye.com> | |
| * Modified and extended from Sean Murphy's gist at https://gist.github.com/1878352 | |
| */ |
