Skip to content

Instantly share code, notes, and snippets.

View parsley72's full-sized avatar
🔥

Tom Isaacson parsley72

🔥
View GitHub Profile
<!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) {
@rla
rla / code.cpp
Created July 23, 2012 13:12
Sending JSON POST request with Qt
void SyncService::sync()
{
QUrl url(SYNC_URL);
QNetworkRequest request(url);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),
@dtsn
dtsn / instagram_tweetdeck.js
Last active December 24, 2015 21:38
A first stab at a instagram loader for the web version of TweetDeck. It needs to be run on a loop and also needs to keep a record of all the links it has gathered.
// ==UserScript==
// @name TweetDeck Instagram
// @description Adds instagram to Tweetdeck
// @include https://tweetdeck.twitter.com/*
// @include chrome-extension://hbdpomandigafcibbmofojjchbcdagbl/*
// @version 0.1
// ==/UserScript==
var func = function () {
@laurieainley
laurieainley / GoPro RTMP streaming with FFmpeg
Last active May 24, 2024 12:08
Live streaming from a GoPro Hero3 camera to RTMP server using FFmpeg
Basic Requirements:
Computer with wired and wireless connection
FFmpeg installation: http://www.ffmpeg.org/
GoPro Hero 3+: http://gopro.com/
RTMP server e.g. FMS (http://www.adobe.com/products/adobe-media-server-family.html) or CDN ingest point
Overview:
GoPro Hero3 cameras produce HLS streams which are consumed by control apps and their removeable monitor.
@adib
adib / BSAlertViewDelegateBlock.h
Created January 2, 2014 15:08
Generic UIAlertViewDelegate implementation that translates into a convenient block-based API. Go to http://cutecoder.org to read how to use this.
//
// BSAlertViewDelegateBlock.h
// SpeechTimer2
//
// Created by Sasmito Adibowo on 25-12-13.
// Copyright (c) 2013-2014 Basil Salad Software. All rights reserved.
//
// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@dustinlarimer
dustinlarimer / README.md
Last active September 11, 2018 01:38
Keen IO Geo Coordinates in a Google Map
@vertexcite
vertexcite / eval.hs
Created April 28, 2015 05:26
Monad example: simple expression evaluation - for Auckland FP Meetup 2015-04-28. By Steve Reeves
---Very simple evaluation for arithmetic expressions with only constants
---(and only "plus"...obviously extendable to other operations)
data Expr = C Float |
Expr :+ Expr
deriving Show
eval :: Expr -> Float
eval (C x) = x
eval (e1 :+ e2) = let v1 = eval e1