Skip to content

Instantly share code, notes, and snippets.

View randallb's full-sized avatar
🎬

Randall Bennett randallb

🎬
View GitHub Profile
d5l58nveajaeng=> select * from posts;
id | message | author_name | author_image | posted_at | url | channel_id | service_id | org_id | created_at | updated_at | type | service_data
----+---------+-----------------------+---------------------------------------------------------+---------------------+-----+------------+------------+--------+----------------------------+----------------------------+--------------+-------------------------------------------
BOOKSURVEY1476BFG
BOOKSURVEY1976BFD
BOOKSURVEY1979QWE
class ChannelBox < Chyron
class Scene
def play(id)
send_command "B\\PL\\#{id}"
end
def load(id)
send_command "B\\LO\\#{id}"
end
def stop(id)
send_command "B\\ST\\#{id}"
@randallb
randallb / gist:3299513
Created August 8, 2012 22:46
Vidpresso pusher thing.
util = require "util"
exec = require("child_process").exec
module.exports = (robot) ->
robot.router.post "/github", (req, res) ->
payload = JSON.parse req.body.payload
if payload.ref is "refs/heads/master"
robot.messageRoom 'github', "Recieved master, deploying to production."
child = exec "/app/pullpushprod.sh", (err, stdout, stderr) ->
var mod;
mod = angular.module('sceneServices', ['ngResource']);
mod.factory('sceneResource', function($resource) {
return $resource("/sceenz.json");
});
# Description:
# Hubot will listen for potential math band names.
#
# Dependencies:
# Requires an inflector. (http://code.google.com/p/inflection-js/)
#
# Configuration:
# None
#
# Commands:
class Scene < ActiveRecord::Base
has_and_belongs_to_many :buttons
has_many :overlay_buttons
has_many :flag_buttons
has_many :ticker_buttons
has_many :bug_buttons
has_many :background_buttons
has_many :other_buttons
has_many :preset_buttons
has_many :button_groups
#= require angular/angular-mocks.js
fn = (suiter) ->
describe "awesome", ->
it "should be cool", ->
console.log "success!"
console.log suiter
fn("suit")
{"author_image":null,
"author_name":null,
"created_at":null,
"id":null,
"message":null,
"updated_at":null,
"entry_type":"FacebookPost", (Could also be "TwitterPost" or "CustomPost")
"service_data":{ DATA FROM FACEBOOK OR TWITTER},
"facebook?":true,
"twitter?":false,
.response.transition-from{
max-height: 0px;
}
.response.transition-to{
max-height: 1000px;
}
.response.transition-out{
opacity: 0;