Skip to content

Instantly share code, notes, and snippets.

♻️
obsessing over statecharts

Stephen Bussard sbussard

♻️
obsessing over statecharts
Block or report user

Report or block sbussard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
View tntraffic.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbussard
sbussard / tnsenate.geojson
Created Jan 26, 2015
TN Senate Disctricts
View tnsenate.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbussard
sbussard / .profile
Last active Aug 29, 2015
Stable, fast and awesome looking PS1
View .profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
promptFunc() {
COOL_COLOR="\[\e[38;5;25m\]"
REPO_FORMAT="\[\e[48;5;233m\]"
DIM="\[\e[2m\]"
@sbussard
sbussard / installing node
Created Feb 17, 2011
installing node.js on a new rackspace cloud instance of ubuntu 10.10
View installing node
#
# so far as I can tell you need to do at least this much to install node on a new rackspace cloud instance of ubuntu 10.10
#
sudo su #to save time, if not root
apt-get update
apt-get install build-essential openssl pkg-config git-core libssl-dev python
git clone https://github.com/joyent/node.git
cd node
./configure
@sbussard
sbussard / codeview.html
Created Feb 26, 2011
drag source files to browser to view as plain text
View codeview.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
<style type="text/css">
body {padding:0;margin:0;}
#codearea {
width: 80%;
border-radius: 10px;
@sbussard
sbussard / cruncher.js
Created Feb 27, 2011
animated plotter where i is the parameter
View cruncher.js
var sin = Math.sin;
var cos = Math.cos;
var tan = Math.tan;
var ln = Math.log;
var log = Math.LOG10E;
var pi = Math.PI;
var wi,hi;
var n;
@sbussard
sbussard / calculator.js
Created Feb 27, 2011
graphing calculator using html5 canvas and web workers
View calculator.js
var sin = Math.sin;
var cos = Math.cos;
var tan = Math.tan;
var ln = Math.log;
var log = Math.LOG10E;
var pi = Math.PI;
onmessage = function (event) {
var n = event.data;
var p = [];
@sbussard
sbussard / snippets.less
Last active Sep 26, 2015
css3 snippet
View snippets.less
.no-select {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
.no-drag {
-webkit-touch-callout: none;
@sbussard
sbussard / price.js
Created Aug 19, 2011
Price validation using jQuery
View price.js
// usage: $("#price").priceField();
$.fn.getCaret = function() { // adapted from http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea
var ctrl = this[0];
var CaretPos = 0; // IE Support
if (document.selection) {
ctrl.focus();
var Sel = document.selection.createRange();
Sel.moveStart('character', -ctrl.value.length);
You can’t perform that action at this time.