Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ajfisher's full-sized avatar

ajfisher ajfisher

View GitHub Profile
@davecranwell
davecranwell / responsive_image.py
Last active December 16, 2020 21:37
Responsive image tag for Wagtail CMS
from django import template
from django.template import Context
from django.template.base import parse_bits
from wagtail.wagtailimages.templatetags.wagtailimages_tags import ImageNode
from wagtail.wagtailimages.models import Filter, SourceImageIOError, InvalidFilterSpecError
from britishswimming.utils.models import SocialMediaSettings
register = template.Library()
@monteslu
monteslu / remoteClient.js
Last active September 4, 2020 06:35
Remote Firmata Client over TCP
var net = require('net');
var five = require('johnny-five');
var firmata = require('firmata');
var options = {
host: '192.168.2.5', //whatever host
port: 48879 //some port
};
anonymous
anonymous / Nanode_BASIC_IO
Created December 25, 2011 09:00
Tiny Basic with Digital and Analogue I/O for Nanode/Arduino
// TinyBASIC.cpp : An implementation of TinyBASIC in C to run on Nanode and Arduino
//
// This version now has the digital I/O, analogue I/O and sleep functions
//
//
// Take on the Nanode Tiny Basic Christmas Challenge
//
// Help Hack Tiny Basic onto Nanode and kickstart a return to simpler and fun programming
// Tiny Basic can help teach kids to program
//