Skip to content

Instantly share code, notes, and snippets.

View rprouse's full-sized avatar
:octocat:
Working from home

Rob Prouse rprouse

:octocat:
Working from home
View GitHub Profile
@rprouse
rprouse / WindView.java
Created September 3, 2014 01:11
A simple Android View to show the weather direction
package net.alteridem.sunshine.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
public class WindView extends View {
@rprouse
rprouse / ChocolateyInstallLite.ps1
Last active August 29, 2015 14:09
A lightweight BoxStarted for a Virtual Machine
#====================================================
# Setting up a new machine using BoxStarter
# 1.Install Windows 8.1 on a new machine.
# 2.Login.
# 3.Open a command prompt and enter the following:
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/b47abc4ebb2db572effe/raw/9df9b13f481de611fc030215bd2f717c60667cf9/ChocolateyInstallLite.ps1
#====================================================
#====================================================
# Boxstarter options
@rprouse
rprouse / Program.cs
Created November 19, 2014 14:33
TcpListener Example
static void Main(string[] args)
{
TcpListener listener = new TcpListener(IPAddress.Any , 8000);
TcpClient client;
listener.Start()
while (true) // Add your exit flag here
{
client = listener.AcceptTcpClient();
ThreadPool.QueueUserWorkItem(ThreadProc, client);
@rprouse
rprouse / Son_Of_ObsidianStyle.json
Created August 21, 2015 16:27
Son of Obsidian theme ported to Xamarin Studio. Copy to C:\Users\{USERNAME}\AppData\Roaming\XamarinStudio-5.0\HighlightingSchemes\Son_Of_ObsidianStyle.json on Windows then set in Tools | Options | Text Editor | Syntax Highlighting.
{
"name":"Son Of Obsidian",
"version":"1.1",
"description":"A theme based on the classic Obsidian.",
"originator":"",
"colors":[
{"name": "Background(Read Only)", "color":"#222829" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#255B6F" },
@rprouse
rprouse / quotes.txt
Created September 15, 2015 01:30
Quotes for the Encourage Visual Studio Extension collected from around the Internets. I make no claim to being the author of any of this, they just make me smile when I saves my codes. https://visualstudiogallery.msdn.microsoft.com/1f3afebb-06c7-4b77-a54f-eb2f0784008d
One of my most productive days was throwing away 1000 lines of code
When in doubt, use brute force
Deleted code is debugged code
Controlling complexity is the essence of computer programming
Way more than 90% of code is crap
A data structure is just a stupid programming language
Life is too short to run proprietary software
XML is like violence: if it doesn’t solve your problem, you aren’t using enough of it
It’s not that Perl programmers are idiots, it’s that the language rewards idiotic behavior
Out-of-band == should be on a separate channel…
@rprouse
rprouse / Install-ContainerHost.ps1
Created March 11, 2016 16:44
Docker install for Windows Server Core 2016 Hyper-V host machine. Applied fix suggested in MicrosoftDocs/Virtualization-Documentation#162
############################################################
# Script assembled with makeps1.js from
# Install-ContainerHost-Source.ps1
# ..\common\ContainerHost-Common.ps1
# Install-ContainerHost-Docker.ps1
# Install-ContainerHost-Main.ps1
############################################################
<#
@rprouse
rprouse / .editorconfig
Created March 13, 2017 18:47
Default EditorConfig file for the root of my source tree.
# EditorConfig helps developers define and
# maintain consistent coding styles between
# different editors and IDEs
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# Don't use tabs for indentation.
@rprouse
rprouse / settings.json
Last active April 6, 2017 12:07
User settings for Visual Studio Code
// Place your settings in this file to overwrite the default settings
{
"editor.acceptSuggestionOnEnter": false,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "line",
"editor.fontFamily": "Fira Code, Hack, Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.formatOnSave": false,
"editor.glyphMargin": true,
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@rprouse
rprouse / .gitconfig
Last active August 29, 2017 15:37
My Mac/Linux .gitconfig
[user]
name = Rob Prouse
email = rob@prouse.org
[core]
autocrlf = input
safecrlf = true
[alias]
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
unstage = reset -q HEAD --