Skip to content

Instantly share code, notes, and snippets.

View moul's full-sized avatar
🌸
Creating languages for coordinated impact.

Manfred Touron moul

🌸
Creating languages for coordinated impact.
View GitHub Profile
anonymous
anonymous / Download image + resize it - Node.js
Created December 25, 2012 15:28
Using a request stream and directly send the image to graphicsmagick
var request = require('request');
var fs = require('fs');
var gm = require('gm');
gm(request('http://image.blingee.com/images18/content/output/000/000/000/6d0/652887372_1455186.gif'), 'brabra.png')
.resize(240, 240)
.write('doodle2.png', function (err) {
if (!err) console.log('done');
console.log(err);
@shesek
shesek / callable.coffee
Last active January 14, 2019 15:37
Decorate constructor functions, and have them return a callable object that delegates to a `callable()` method when invoked.
##########
### Moved to https://github.com/shesek/callable-klass
##########
"use strict"
# without strict mode, `this` defaults to window, so `(this?obj)`
# would always return window.
callable = (ctor) ->
<ezstream>
<url>http://127.0.0.1:8042/test</url>
<sourcepassword>test</sourcepassword>
<sourceuser>test</sourceuser>
<format>MP3</format>
<filename>b.mp3</filename>
<stream_once>0</stream_once>
<svrinfoname>test</svrinfoname>
<svrinfourl>test</svrinfourl>
<svrinfogenre>test</svrinfogenre>
@mjamieson
mjamieson / README.md
Last active February 2, 2018 16:39
Instagram photos by location for Dashing

Description

Dashing widget to display location based photos from Instagram.

##Dependencies

instagram - Official Ruby Gem

Add the following to your Dashing Gemfile:

@boogah
boogah / Favorite Alfred Workflows.md
Last active December 29, 2017 19:41
My Favorite Alfred Searches & Workflows
import networkx as nx
import pprint
from operator import itemgetter
G = nx.read_graphml('metro.graphml')
print "graph has %d nodes with %d edges"\
% (nx.number_of_nodes(G), nx.number_of_edges(G))
@stuartpb
stuartpb / glorw.txt
Created June 4, 2013 22:43
General list of reserved words
### General List of Reserved Words
### Stuart P. Bentley <stuart@testtrack4.com>, June 4, 2013
## This is a general list of words you may want to consider reserving,
## in a system where users can pick any name, in a context where the
## system may use names as well. One prominent example of a system
## where this is the case would be a site that serves pages for users,
## at their username, from the site root, like
## http://twitter.com/stuartpb . In this system, you would want to
## reserve some routes for pages that would commonly be expected to
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active April 17, 2024 10:51
Backend Architectures Keywords and References
@iainjmitchell
iainjmitchell / README.md
Last active November 12, 2018 23:18
Guthub status widget for dashing

##Description Simple Dashing widget (and associated job) to display current github status.

##Dependencies httparty

Add it to dashing's gemfile:

gem 'httparty'
@pasiaj
pasiaj / phantomjs-linkedin.js
Created July 31, 2013 19:57
A phantomjs script to: a) Login to Linkedin.com b) Scrape all your contacts c) Visit all the contacts d) Automatically endorse all contacts' skills.
var auth = {
user: "USERNAME",
pass: "PASSWORD"
};
function ParallelRunner (list, func, runners) {
function createSlots(runners) {
var slots = [];
for (var i = 0; i < runners; i++) {
slots.push( objReturner() );