Skip to content

Instantly share code, notes, and snippets.

View duppypro's full-sized avatar

Duppy duppypro

View GitHub Profile
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active March 12, 2024 15:59 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@duppypro
duppypro / Sample_MMA8452Q_Device.nut
Last active December 26, 2015 22:49
Sample Electric Imp code for reading i2c registers of MMA8452Q accelerometer See electricimp.com See https://www.sparkfun.com/products/10955 for MMA8452Q accelerometer breakout board
// Sample code using MMA8452Q accelerometer
// Electric Imp Device Squirrel code
// License:
// This code is provided under the Creative Commons Attribution-ShareAlike 3.0 License
// http://creativecommons.org/licenses/by-sa/3.0/us/legalcode
// If you find bugs report to duppypro on github or @duppy #MMA8452Q on twitter
// If you find this useful, send a good word to @duppy #MMA8452Q
// Thanks to @jayrz for finding the first bug.
/////////////////////////////////////////////////
@anantn
anantn / firebase_chat.html
Created May 6, 2013 18:13
A simple, plugin-free chat room - build with Firebase
<html>
<head>
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
</head>
<body>
<ul id="chat-list">
</ul>
<input type="text" id="msg"/>
<input type="button" id="send" value="Send"/>
<script>
@cat-haines
cat-haines / agent.nut
Created April 20, 2013 00:02
Electric Imp example API
local greenState = 0;
local redState = 0;
device.on("setRed", function(data) {
redState = data;
});
device.on("setGreen", function(data) {
greenState = data;
});
//Tutorial 1 Reading Electric imp April input from JQM web app
//Imp & Agent are written in squirrel-lang.org They should have a .NUT extension.
//but I've used .js so the editor will use colour highlighting.