Skip to content

Instantly share code, notes, and snippets.

@hanishi
hanishi / flow.json
Created July 9, 2012 08:47
Untitled_0
{
"nodes": [
{
"title": "Retweet",
"icon": "images/icons/twitter_64.png",
"top": 74,
"left": 269,
"compID": "twitter_retweet",
"id": "step_132"
},
@hanishi
hanishi / flow.json
Created July 9, 2012 08:52
Untitled_217
{
"nodes": [
{
"title": "Chargify",
"icon": "images/icons/chargify_64.png",
"top": 92,
"left": 265,
"compID": "chargify",
"id": "step_369"
},
@hanishi
hanishi / flow.json
Created July 10, 2012 01:52
Untitled_0
{
"nodes": [
{
"title": "Timeline",
"icon": "images/icons/twitter_64.png",
"top": 120,
"left": 289,
"compID": "twitter",
"username": "elasticio",
"backFill": "15",
@hanishi
hanishi / flow.json
Created July 10, 2012 01:53
Untitled_0
{
"nodes": [
{
"title": "Facebook",
"icon": "images/icons/facebook_64.png",
"top": 146,
"left": 290,
"compID": "facebook_graph",
"id": "step_132"
},
@hanishi
hanishi / flow.json
Created July 10, 2012 01:54
Untitled_0
{
"nodes": [
{
"title": "Dropbox",
"icon": "images/icons/dropbox_64.png",
"top": 69,
"left": 285,
"compID": "dropbox",
"path": "tweets/drobiazko",
"id": "step_137"
@hanishi
hanishi / flow.json
Created July 12, 2012 01:31
Untitled_0
{
"nodes": [
{
"title": "Retweet",
"icon": "images/icons/twitter_64.png",
"top": 174.23638405041834,
"left": 315.764161849711,
"compID": "twitter_retweet",
"id": "step_132"
},
@hanishi
hanishi / random_story.js
Created January 23, 2013 23:47
node_in_action_3_4_2
var fs = require('fs')
, request = require('request')
, htmlparser = require('htmlparser');
var tasks = [
function () {
var configFileName = './rss_feeds.txt';
fs.exists(configFileName, function (exists) {
if (!exists) {
next('Create a list of RSS feeds in the file ./rss_feeds.txt');
@hanishi
hanishi / word_count.js
Created January 24, 2013 03:36
word_count
var fs = require('fs')
, completedTasks = 0
, tasks = []
, wordCounts = {}
, filesDir = './text';
function countWordsInText(text) {
var words = text.toString().toLowerCase().split(/\W+/).sort();
for (var index in words) {
var word = words[index];
@hanishi
hanishi / gist:5967154
Created July 10, 2013 15:14
SignalR HubConfigurator
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR.Client.Hubs;
using System.ComponentModel.Composition;
@hanishi
hanishi / gist:5967246
Created July 10, 2013 15:26
And here is the Synchronizer
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR.Client.Hubs;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace SignalR
{
class Synchronizer : IHubProxy