Skip to content

Instantly share code, notes, and snippets.

View jpfuentes2's full-sized avatar

Jacques Fuentes jpfuentes2

  • Chime
  • Richmond, VA
View GitHub Profile
#!/bin/sh
bundle install --binstubs
bundle exec rake db:drop RAILS_ENV=development
bundle exec rake db:drop RAILS_ENV=test
bundle exec rake db:create:all
bundle exec rake db:setup
bundle exec rake db:development:accounts
echo "
@jpfuentes2
jpfuentes2 / map.js
Last active December 10, 2015 21:38 — forked from zor/gist:4496523
drawLandmarks: function() {
var parent = this;
var createListenter = function(shapeMarker, landmark) {
google.maps.event.addListener(shapeMarker, 'click', function() {
parent.setLocation('activity', landmark.id, landmark.name, shapeMarker);
});
}
for (var i = 0, landmark; landmark = this.landmarkData[i]; i++) {
if(landmark.type == "circle") {
@jpfuentes2
jpfuentes2 / rbenv-install-system-wide.sh
Created March 8, 2012 19:47
CentOS: rbenv install and system wide install
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core