Skip to content

Instantly share code, notes, and snippets.

View sha1sum's full-sized avatar

Anthony Atkinson sha1sum

  • GRIN, Inc.
  • Saint Petersburg, FL, United States
View GitHub Profile
@sha1sum
sha1sum / gist:c9429a4f69fea0c5637a
Last active August 29, 2015 14:09
GroupMe Emoji JS
// This gets the powerups for us to use in the below replaceEmoji function
window.powerups = (function() {
var powerups = null;
$.ajax({
'async': false,
'global': false,
'url': 'https://powerup.groupme.com/powerups',
'dataType': 'json',
'success': function(data) {
powerups = data;
@sha1sum
sha1sum / groupme_faye.rb
Created October 2, 2014 12:14
Rails Initializer for GroupMe Faye Sockets
# Originally set up as a Rails initializer, but can be adapted to use elsewhere.
# Requires the faye gem
require 'eventmachine'
Thread.new do
EM.run {
::GroupMeClient = Faye::Client.new 'https://push.groupme.com/faye'
class GroupMeClientAuth
@sha1sum
sha1sum / groupme.rb
Last active August 29, 2015 14:07
Ruby Class for Posting GroupMe Messages
class GroupMe
include HTTParty
base_uri 'https://api.groupme.com/v3'
format :json
def initialize(access_token)
@access_token = access_token
end
def doPost(path, body, query = nil)