Skip to content

Instantly share code, notes, and snippets.

View base64.proxy.js
var express = require("express");
var request = require("request");
var app = express.createServer(express.logger(), express.bodyParser());
app.get("/batch", function(req, res) {
if(!req.param("data")) return;
var data = req.param("data");
var callback = req.param("callback") || 'callback';
@rjsteinert
rjsteinert / simple-file-attachment-for-couchdb.html
Created Nov 14, 2012
A very basic example in Javascript of how to attach a file to a CouchDB document. This will work wether or not the Document ID you define exists.
View simple-file-attachment-for-couchdb.html
<!DOCTYPE html>
<! --
A very basic example in Javascript of how to attach a file to a CouchDB document. This will work wether or not the Document ID you define exists.
Log in at /_utils, upload this file to a document, and then view it for your own uploader. See the code for comments. ajaxSubmit() is the magic that attaches
as long as the Couch Doc exists because you can't submit a new Couch Document with an attachment.
by @rjsteinert http://rjsteinert.com
-->
<html xmlns="http://www.w3.org/1999/xhtml">
@kpj
kpj / gist:8272359
Last active Jan 2, 2016
Non-working test
View gist:8272359
# requires ffmpeg, mpgtx
import sys, os, os.path, datetime
import numpy
from scipy.io.wavfile import read
# adjust this!
save_for_plot = False
volume_threshold = 250
View occasionallyUsefulWebsites.md

zoho mail Webmail provider that supports custom domains (see also: mail.live.com)

mx domain lookup Used it to debug issues when setting up custom email domains.

image proxy Caches and resizes images for websites

picozu web image editor I like this one because there is no sign-up and you can drag and drop onto it.

@RIAEvangelist
RIAEvangelist / Install Cloud9 on local or remote computer, server, or raspberry pi
Last active May 30, 2021
This gist will help you install Cloud9 on your local or remote computer, server, or even your raspberry pi. Many people are having issues at the time of this Gist's creation.
View Install Cloud9 on local or remote computer, server, or raspberry pi
Complete installation process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev
sudo apt-get update
sudo apt-get upgrade
cd ~
mkdir git
cd ~/git
View a-backbone-js-demo-app-sinatra-backend.md

A Backbone.js demo app (Sinatra Backend)

Oct 16 2010

Updates

  • 04/10/2011 - Updated application.js and application.rb thanks to @rebo's comments

In this article, I will walk through some simple steps to get a [demo app][2] up and running with [Backbone.js][3] and [Sinatra][4] on [Heroku][5].

@paulmillr
paulmillr / active.md
Last active Oct 24, 2021
Most active GitHub users (by contributions). http://twitter.com/paulmillr
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter(user => user.followers > 1000)