Skip to content

Instantly share code, notes, and snippets.

@arturo-c
arturo-c / AllPlayers_Post_Member
Created June 26, 2013 17:39
AllPlayers Member Post Data
{
"event_data" : {
"group" : {
"group_above" : Group above uuid (String),
"name" : Group title/name (String),
"organization_id" : Array of organization group uuids (Array),
"type" : Array of group types, i.e. Sports, Baseball (Array),
"uuid" : UUID of group (String)
},
"member" : {
@arturo-c
arturo-c / redis_server
Last active December 19, 2015 00:58
Redis and Resque Server Setup for Ubuntu 12.04
sudo apt-get install make
sudo apt-get update
sudo apt-get install build-essential
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
sudo make install
sudo apt-get install rubygems
/**
* Class that uses basic perform function to process queued jobs.
*/
class CopyGroupHierarchy
{
/**
* Before processing, connect to correct instance of redis.
*/
public function __construct()
{
<?php
namespace RugbyStatsMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your need!
*/
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
@arturo-c
arturo-c / redis.conf
Created September 20, 2013 16:26
Redis configuration file for 2.6
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
diff --git a/Gemfile b/Gemfile
index cecf9d3..51dc2f2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,6 +12,7 @@ gem 'mongoid'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'twitter'
+gem 'geocoder'
group :development do
diff --git app/controllers/games_controller.rb app/controllers/games_controller.rb
new file mode 100644
index 0000000..e69de29
diff --git app/views/games/index.html.erb app/views/games/index.html.erb
new file mode 100644
index 0000000..e69de29
diff --git Gemfile Gemfile
index cecf9d3..51dc2f2 100644
--- Gemfile
+++ Gemfile
@@ -12,6 +12,7 @@ gem 'mongoid'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'twitter'
+gem 'geocoder'
group :development do
diff --git a/Gemfile b/Gemfile
index cecf9d3..51dc2f2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,6 +12,7 @@ gem 'mongoid'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'twitter'
+gem 'geocoder'
group :development do