Skip to content

Instantly share code, notes, and snippets.

View jrsconfitto's full-sized avatar

James Sconfitto jrsconfitto

View GitHub Profile
@jrsconfitto
jrsconfitto / SerialLED.ino
Last active December 12, 2015 09:28
Arduino LED manipulation sketch
// LED manipulation code
// Borrows code from:
// * Adafruit's LED library: https://github.com/adafruit/LPD8806
// * Arduino example code for serial communication
// * astromaf's RGBLamp code: https://github.com/astromaf/MyRGBLamp
#include <LPD8806.h>
#include <SPI.h>
int dataPin = 2;
// Using adafruit's LED library: https://github.com/adafruit/LPD8806
#include <LPD8806.h>
#include <SPI.h>
int dataPin = 2;
int clockPin = 3;
// First parameter is the number of LEDs in the strand. The LED strips
// are 32 LEDs per meter but you can extend or cut the strip. Next two
// parameters are SPI data and clock pins:
<Window x:Class="SerialCommunication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
@jrsconfitto
jrsconfitto / Gemfile
Created January 25, 2013 19:56
This is a playground for me to try to git a `git log -- [path]` equivalent from Rugged
gem 'rugged', :path => '../rugged'
@jrsconfitto
jrsconfitto / amplify.store.js
Last active December 11, 2015 13:38
AmplifyJS store bug on Android
/*!
* Amplify Store - Persistent Client-Side Storage 1.1.0
*
* Copyright 2011 appendTo LLC. (http://appendto.com/team)
* Dual licensed under the MIT or GPL licenses.
* http://appendto.com/open-source-licenses
*
* http://amplifyjs.com
*/
(function( amplify, undefined ) {
@jrsconfitto
jrsconfitto / index.html
Created December 6, 2012 17:49
Why can't i get this working?
<html>
<head>
<style type="text/css">
.chart rect {
stroke: white;
fill: steelblue;
}
.line {
fill: none;
@jrsconfitto
jrsconfitto / LoginModule.vb
Created November 6, 2012 19:56
Nancy Authentication issues i'm having
Imports Nancy
Imports Nancy.Authentication.Forms.ModuleExtensions
Imports Nancy.Extensions
Imports Nancy.Security
Imports System.Dynamic
''' <summary>
''' Handles all security related requests
''' </summary>
Public Class Login
@jrsconfitto
jrsconfitto / GHfW keyboard.md
Last active April 3, 2023 08:16
GitHub for Windows Keyboard Shortcuts

Keyboard shortcuts for GHfW

Here's a listing of all the GHfW keyboard stuff that i can think of. Now i know them after writing this, but i figured it would be nice to have these documentated somewhere.

Rant: i dont know why people say that Windows users dont like using the keyboard for everything. That's certainly not true for me. Though, that may be the case from using Unix in college.

All screens

You can use Alt shortcuts. Hold down Alt and you'll see the underlines. Menus brought up this way have j & k navigations! Try it on the tools menu.

@jrsconfitto
jrsconfitto / RxUIExamples.md
Created October 9, 2012 20:33
RxUI Examples

Rx UI Examples

Examples for me since i can't seem to remember how the basics work!

WhenAny

@jrsconfitto
jrsconfitto / Tweets.cs
Created June 7, 2012 20:13
Grab a Twitter search result using RestSharp and some json classes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RestSharpLearning
{
public class Metadata
{
public string result_type { get; set; }