Recommended: Graph-tool one-line install commands:
anaconda
conda create --name gt -c conda-forge graph-tool
homebrew
brew install graph-tool
""" | |
ldr.py | |
Display analog data from Arduino using Python (matplotlib) | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" | |
import sys, serial, argparse |
/****************************** | |
* | |
* Example "Square" | |
* created by Syd | |
* | |
*******************************/ | |
#include <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
#include <cstdlib> |
#include <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
#include <iostream> | |
#include <string> | |
void PrintOpenGLErrors(char const * const Function, char const * const File, int const Line) | |
{ |
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
// See http://sean-parent.stlab.cc/presentations/2016-10-10-runtime-polymorphism/2016-10-10-runtime-polymorphism.pdf | |
// or an earlier version, "Inheritance Is The Base Class of Evil" | |
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
using namespace std; |
from tkinter import * | |
from tkinter.colorchooser import askcolor | |
class Paint(object): | |
DEFAULT_PEN_SIZE = 5.0 | |
DEFAULT_COLOR = 'black' | |
def __init__(self): |