$ npm install -g grunt-cli
{
"name" : "SampleGrunt",
"version" : "0.1.0",
"author" : "Brandon Random",
"private" : true,
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install mongodb-org | |
# Running Mongo | |
service mongod start | |
sudo /etc/init.d/mongod start | |
# Stopping Mongo |
<div class="rails-builder-snippet"> | |
<iframe src="/rails_builder?request=<%= request.uuid %>" id="rails-builder-iframe" scrolling="no" seamless="seamless" style="position:absolute; width: 400px; height: 100%; right: 0; top: 0; z-index: 9999999; overflow-y: hidden;"></iframe> | |
</div> | |
<div id="rails-builder-selected-element" style="position:absolute;top:0;left:0;border: 1px solid grey; background: rgba(0,131,204,0.5);"></div> | |
<script type="text/javascript"> | |
var RailsBuilder = RailsBuilder || {}; | |
RailsBuilder.request_id = "<%= request.uuid %>"; | |
;(function () { | |
$(function() { |
** Create the plugin without test-unit and specify the path for the dummy application:
rails plugin new $project_name --skip-test-unit --dummy-path=spec/dummy --mountable
** Add rspec-rails as a development dependency to the gemspec file (foobar.gemspec):
Gem::Specification.new do |s|
var GeoUtils = { | |
MIN_LAT: -90 * Math.PI/180, // -PI/2 | |
MAX_LAT: 90 * Math.PI/180, // PI/2 | |
MIN_LON: -180 * Math.PI/180, // -PI | |
MAX_LON: 180 * Math.PI/180, // PI | |
computeBoundingCoordinates: function(coords, distance, radius) { | |
radius = 6371.01; // Size of the earth in kilometers |
# Create Project | |
phonegap create ~/Documents/phonegap/ProjectName --id "com.kadrmasconcepts.projectname" --name "ProjectName" | |
# Add Platforms | |
cordova platform add ios | |
cordova prepare | |
# Add Plugins | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git | |
cordova plugin add git://github.com/blackjk3/PhoneGap-LowLatencyAudio-iOS.git |
# Oracle | |
export NLS_LANG="AMERICAN_AMERICA.UTF8" | |
export ORACLE_HOME=/opt/oracle/instantclient | |
export DYLD_LIBRARY_PATH=$ORACLE_HOME | |
export LD_LIBRARY_PATH=/opt/oracle/instantclient | |
export SQLPATH=/opt/oracle/instantclient | |
export TNS_ADMIN=/opt/oracle/network/admin | |
export PATH=$PATH:$ORACLE_HOME | |
export PATH=$PATH:$DYLD_LIBRARY_PATH |
/* 1. Sidebar list slide out */ | |
.sidebar { | |
position: absolute; | |
overflow: scroll; | |
-webkit-overflow-scrolling: touch; | |
background-color: #313134; | |
border-left: 2px solid #202022; | |
/* Initially Hidden */ |
SELECT ID , stop_name, ST_Distance_Sphere( | |
ST_GeomFromText('POINT(' || stop_lon || ' ' || stop_lat || ')'), | |
ST_GeomFromtext('POINT(-93.2446454 44.9723784)') | |
), stop_lat, stop_lon | |
FROM STOPS | |
order by 3 | |
limit 10; | |
insert into stops | |
(stop_code, stop_name, stop_desc, stop_lat, stop_lon, zone_id, stop_street, stop_city, stop_region, stop_postcode, stop_country) |
App = Ember.Application.create({ | |
rootElement: '.affix-container', | |
ready: function() { | |
console.log('ember ready'); | |
App.requestController = App.RequestController.create(); | |
} | |
}); | |
DS.RESTAdapter.reopen({ | |
namespace: 'portal/requests/api' |