Skip to content

Instantly share code, notes, and snippets.

View imsickofmaps's full-sized avatar

Mike Jones imsickofmaps

  • Western Cape Labs
  • Lewes, UK
  • 05:42 (UTC +01:00)
View GitHub Profile
module.exports = function() {
return [{
name: 'states:register'
}, {
name: 'states:registration:engagement'
}];
};
@gee-forr
gee-forr / links.md
Last active August 29, 2015 14:01
Some links for more reading from my talk on Job Stories
@blackjid
blackjid / README.md
Last active June 11, 2023 15:15
How configure your raspberry pi with dashing to have a awesome dashboard

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
@staltz
staltz / introrx.md
Last active July 13, 2025 10:33
The introduction to Reactive Programming you've been missing
var Event = vumigo.events.Event;
var BaseApp = App.extend(function(self) {
App.call(self, 'states:start');
self.states.add('states:start', function(name) {
// a bit of a yucky way of doing events, wish we opted for a more
// nodejs like approach (.emit('foo', {bar: 'baz'}))
// .emit returns a promise
var _ = require('lodash');
var vumigo = require('vumigo_v02');
var App = vumigo.App;
var Choice = vumigo.states.Choice;
var ChoiceState = vumigo.states.ChoiceState;
var FreeText = vumigo.states.FreeText;
var EndState = vumigo.states.EndState;
@jerith
jerith / gist:865fafea21ac0298bb4d
Created September 25, 2014 12:58
Releasing a Python thing
# You'll need these to release stuff.
pip install wheel twine
# Versioning and merging.
./utils/bump-version.sh <version>
git commit -m 'Release version <version>.'
git push origin develop
git checkout master
git merge --ff develop
git tag besnappy-<version>
@hodgestar
hodgestar / gff
Created March 3, 2015 09:49
Git Flow Feature helper script.
#!/bin/bash
CMD="$1"
shift 1
function get_feature () {
FEATURE=`git flow feature | grep '^\* ' | sed 's/^\* //'`
ISSUE=`echo "$FEATURE" | sed -e 's/issue-\([0-9]*\)-.*/\1/'`
echo "Feature: $FEATURE (issue: $ISSUE)"
}
@lambdahands
lambdahands / _readme.md
Created September 28, 2015 17:09
FlowType and CSS Modules

Huh?

So basically FlowType doesn't know about CSS Modules, a really handy way of dealing with the plagues of CSS in codebases (global variables and dependency wackiness mainly).

What WebPack allows us to do is "require" CSS files and use their class names:

import styles from "my_styles.css";
import React from "react";
@rririanto
rririanto / pypdf_to_image.py
Last active June 16, 2020 06:23
Python Convert PDF to Image
"""
Problem:
How to Convert PDF to Image with Python Script ?
Installation:
I use ubuntu OS 14.04
We use wrapper for ImageMagick [http://www.imagemagick.org/script/index.php] to Convert The PDF file
in Python do:
$ sudo apt-get install libmagickwand-dev