####Dependencies
####Usage
Add geojson_renderer.rb
file into config/initializers folder
Add array.rb file in /lib/core_ext folder
Add require 'core_ext/array.rb'
in environment.rb
####Dependencies
####Usage
Add geojson_renderer.rb
file into config/initializers folder
Add array.rb file in /lib/core_ext folder
Add require 'core_ext/array.rb'
in environment.rb
#!/bin/bash | |
# usage: s3geojson2shp.sh my.bucket.com | |
# retreive all files from the s3 bucket | |
aws s3 cp --recursive s3://$1 . | |
# append .geojson to all files and append into master shp file | |
for file in *; | |
do |
#!/usr/bin/env bash | |
# run cmd in background after shell logout | |
# http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html | |
nohub doCommand.sh & | |
url=http://example.com | |
# curl into var | |
count=$(curl $url) |
files: | |
"/etc/yum.repos.d/10gen.repo": | |
mode: "000777" | |
owner: root | |
group: root | |
content: | | |
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 |
sudo yum update | |
sudo yum install gcc-c++ make | |
sudo yum install openssl-devel | |
sudo yum install git | |
git clone git://github.com/joyent/node.git | |
cd node | |
git checkout v0.6.8 | |
./configure |
link(rel="import", href="../bower_components/polymer/polymer.html") | |
polymer-element(name="my-element") | |
template(type="jade") | |
h1 This is my element | |
style(type="stylus") | |
h1 | |
color red | |
script(type="coffeescript") | |
Polymer 'my-element', |
installing previous homebrew recipes: http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula
jave home: http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/
from rmwb w/ no compat: (working) | |
"user-agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" | |
from rmwb w/ compat: ( not working) | |
"user-agent": "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; BRI/2)" | |
from spencer w/ compat: (working) | |
"user-agent": "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; ASU2JS)" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>A Simple Map</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' /> |