Skip to content

Instantly share code, notes, and snippets.

View bluewhalelabs's full-sized avatar

Gregarious Narain bluewhalelabs

View GitHub Profile
@liuhenry
liuhenry / chute_uploader.py
Created June 28, 2012 02:41
Chute Upload using API v2 (Python)
import requests
import json
import os
import hashlib
class Chute:
BASE_URI = 'http://api.getchute.com'
def __init__(self, app_id, access_token):
@bluewhalelabs
bluewhalelabs / gist:2653728
Created May 10, 2012 15:02
Slidechute Asset Data
// -----------------------------------------------------------
// Sample Upload Data
// -----------------------------------------------------------
// time - Timestamp for the upload
// moderated - Boolean indicating if upload was moderated
// asset - Array of Asset Hashes
// -----------------------------------------------------------
{
time: 1335624522.467072, // Timestamp
moderated: false, // Boolean indicating if the asset has been published
@elidupuis
elidupuis / handlebars-helpers.js
Last active December 7, 2021 02:24
Simple Handlebars.js helpers
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {