Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| <html> | |
| <head></head> | |
| <body style="background-color:#ffffff;margin:10px"> | |
| <script> | |
| var uploadFile = function(){ | |
| var text = document.getElementById('txt'); | |
| var dir = Titanium.Filesystem.getResourcesDirectory(); | |
| sep = Titanium.Filesystem.getSeparator(), | |
| // filename = 'test.txt', |
| # Module Dependencies | |
| express = require 'express' | |
| app = module.exports = express.createServer(); | |
| # Configuration | |
| app.configure () -> | |
| app.set 'views', "#{__dirname}/views" | |
| app.set 'view engine', 'jade' |
| // main app.js | |
| var client = require('ranger').createClient('ROOM', | |
| 'SECRET'); | |
| var timestamp = require('./timestamp').timestamp; | |
| var getWeatherWrapper = require('./weather').getWeatherWrapper; | |
| var showMap = require('./map').showMap; | |
| var getTweets = require('./tweets').getTweets; | |
| client.room(ROOMID, function(room) { |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| module Helpers | |
| def sign_in(user) | |
| @user_session = UserSession.create user | |
| end | |
| def fill_in_autocomplete(selector, value) | |
| page.execute_script %Q{$('#{selector}').val('#{value}').keydown()} | |
| end | |
| def choose_autocomplete(text) |
| #!/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 | |
| # |
| class Hash | |
| # options: | |
| # :exclude => [keys] - keys need to be symbols | |
| def to_ostruct_recursive(options = {}) | |
| convert_to_ostruct_recursive(self, options) | |
| end | |
| private | |
| def convert_to_ostruct_recursive(obj, options) | |
| result = obj |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| # Gitlab 5.1: https://github.com/gitlabhq/gitlabhq/blob/5-1-stable/doc/install/installation.md | |
| # Set up an AWS EC2 Ubuntu 12.04 LTS Server. | |
| # Use ap-southeast-1b: spot pricing is smoother | |
| # Log in as ubuntu@ | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| # Install the required packages. |