Skip to content

Instantly share code, notes, and snippets.

View notthetup's full-sized avatar
🔊

Chinmay Pendharkar notthetup

🔊
View GitHub Profile
@jsantell
jsantell / webaudioscratchsheet.md
Last active August 29, 2015 14:01
Firefox Developer Tools' Web Audio Editor scratchpad

Originally from etherpad

The Web Audio Editor in Firefox Developer Tools is still a work in progress. A lot of love is needed in its current state, and once the basic features are working, here are some dream features, and future planning.

Milestones

@whichlight
whichlight / art-demo-links.md
Last active August 29, 2015 14:02
materials for jsconf talk
@jussi-kalliokoski
jussi-kalliokoski / main.js
Created November 9, 2014 13:07
Example of pre-initialized AudioWorker proposal
var context = new AudioContext();
var sineWorker = context.createAudioWorker("worker.js");
function createSineNode (frequency) {
var node = context.createAudioWorkerNode(sineWorker, {
numberOfInputChannels: 0,
numberOfOutputChannels: 1,
parameters: {
frequency: frequency || 440,
},
@sayanee
sayanee / iojs-rpi2.md
Last active August 29, 2015 14:17
iojs on raspberry pi 2 with raspbian
  1. If using Raspbian Wheezy, then upgrade to Jessie with these instructions.
  • Install nvm with curl command
  • Install iojs with nvm: nvm install iojs
  • revert to Wheezy in Step 1
  • install Chromium with sudo apt-get install chromium
@rahulg
rahulg / chmow
Created May 8, 2015 02:33
chmod / chown wrapper
#!/usr/bin/env bash
#
# Installation:
# Copy chmow to some directory in your path, like /usr/local/bin
# cd <directory_above>
# chmod 0755 chmow
# ln -s chmow chmod
# ln -s chmow chown
set -e -u
@mahemoff
mahemoff / episode.haml
Created June 24, 2015 08:23
Twitter card meta tags
%meta(name="twitter:card" content="player")
%meta(name="twitter:title" content="#{@episode.safe_title} by #{@series.safe_title}")
%meta(name="twitter:app:name:googleplay" content="Player FM")
%meta(name="twitter:app:id:googleplay" content="fm.player")
%meta(name="twitter:description" content="#{@episode.safe_description}")
%meta(name="twitter:site" content="PlayerFM")
%meta(name="twitter:image" content="#{safe_series_image_url @episode.series}")
-# dev tunnel -> %meta(name="twitter:player" content="https://something-something.ngrok.com#{widget_episode_path series_id: @series.slug, id: @episode.slug}"
)
%meta(name="twitter:player" content="#{Player.routes.base_url}#{widget_episode_path series_id: @series.slug, id: @episode.slug}")
@jonathanmoore
jonathanmoore / gist:1473089
Created December 13, 2011 17:45
Tumblr <embed> striping
<!-- Embed code for Mixcloud -->
<object width="480" height="480">
<param name="movie" value="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard"></param>
<param name="allowFullScreen" value="true"></param>
<param name="wmode" value="opaque"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard" type="application/x-shockwave-flash" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" width="480" height="480"></embed>
</object>
<!-- Embed code after Tumblr strips the <embed> tag -->
@rahulg
rahulg / _x_segfault.c
Created October 4, 2012 06:22
Free segfaults for everyone!
#define _x_segfault() \
__asm__ __volatile__ ("movq $0, %%r11\n" \
"movq (%%r11), %%r10\n" \
: \
: \
: "%r11", "%r10" \
)
"""Attempt to solve the xkcd Alma Mater challenge.
Dependencies:
pyskein
requests
Usage:
python code.py york.ac.uk
"""
@granoeste
granoeste / gist:1033085
Created June 18, 2011 13:15
[Android]Using the Handler and Lopper with HandlerThread
// With reference to the android.app.IntentService of the Android framework
// Member variable
private volatile Looper mServiceLooper;
private volatile ServiceHandler mServiceHandler;
// Handler Class
private final class ServiceHandler extends Handler {
public ServiceHandler(Looper looper) {
super(looper);