Skip to content

Instantly share code, notes, and snippets.

View jrsconfitto's full-sized avatar

James Sconfitto jrsconfitto

View GitHub Profile
@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 / README.md
Last active December 30, 2015 02:29 — forked from mbostock/.block
@jrsconfitto
jrsconfitto / goserve.go
Created September 24, 2013 17:12
Simple static file server in Go
package main
import (
"flag"
"fmt"
"net/http"
"os"
"strings"
"strconv"
)
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel='stylesheet' type='text/css' href='' />
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'>
</head>
<body>
<script src=''></script>
@jrsconfitto
jrsconfitto / Build script
Last active December 18, 2015 12:19
My Nancy root path hacks for debugging views quickly when self-hosting
echo "$(ProjectDir)Web" > "$(OutDir)Debug-Path.txt"
@jrsconfitto
jrsconfitto / powershell tips.md
Last active December 13, 2015 21:28
Useful Powershell commands that i can never remember!

PowerShell tips

Because i can never remember stuff and then i end up walking down the same old road until i get to that stackoverflow answer i've already starred.

Environment variables

List them: Get-ChildItem Env: - Creating and modifying environment variables

Get your path in Powershell: $env:path
Make that path readable: $env:path.split(‘;’)

@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'