So you want to have pretty URLs with no trailing slash or .html like:
http://mysite.com/blog/my-new-kitten
not like:
http://mysite.com/blog/my-new-kitten/
or
So you want to have pretty URLs with no trailing slash or .html like:
http://mysite.com/blog/my-new-kitten
not like:
http://mysite.com/blog/my-new-kitten/
or
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); | 
| @binkmail.com | |
| @bobmail.info | |
| @chammy.info | |
| @devnullmail.com | |
| @letthemeatspam.com | |
| @mailinater.com | |
| @mailinator.net | |
| @mailinator2.com | |
| @notmailinator.com | |
| @reallymymail.com | 
| module.exports = (grunt) -> | |
| # configuration | |
| grunt.initConfig | |
| # grunt sass | |
| sass: | |
| compile: | |
| options: | |
| style: 'expanded' | 
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); | 
| require 'rubygems' | |
| require 'twitter' | |
| # see https://github.com/sferik/twitter | |
| def twitter_client | |
| Twitter::REST::Client.new do |config| | |
| config.consumer_key = "XXXXXX" | |
| config.consumer_secret = "XXXXXX" | |
| config.access_token = "XXXXXX" | 
| module.exports = function(grunt) { | |
| var matches = grunt.file.expand('scripts/template-scripts/**/index.js'); | |
| var requirejsOptions = {}; | |
| if (matches.length > 0) { | |
| for (var x = 0; x < matches.length; x++) { | |
| var path = matches[x].replace(/\/index\.js/, ''); | |
| requirejsOptions['task' + x] = { | |
| "options": { | |
| "baseUrl": "./", | 
| =LOWER(CLEAN(SUBSTITUTE(TRIM(C2)," ","-"))) | 
This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.
Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.
See a demo at http://stuff.dan.cx/js/filepicker/google/
| # Support for Rspec / Capybara subdomain integration testing | |
| # Make sure this file is required by spec_helper.rb | |
| # (e.g. save as spec/support/subdomains.rb) | |
| def switch_to_subdomain(subdomain) | |
| # lvh.me always resolves to 127.0.0.1 | |
| hostname = subdomain ? "#{subdomain}.lvh.me" : "lvh.me" | |
| Capybara.app_host = "http://#{hostname}" | |
| end |