Skip to content

Instantly share code, notes, and snippets.

Avatar
Github has statuses?

C.J. Kinniburgh CJKinni

Github has statuses?
View GitHub Profile
@CJKinni
CJKinni / boxstarter.ps1
Last active Jul 11, 2018
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Chris Kinniburgh <chris@cjkinni.com>
# Based heavily on https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# by Jess Frazelle
# Last Updated: 2017-12-31
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
@CJKinni
CJKinni / parsing_steam_xml.md
Last active Jul 12, 2017
My thought process when learning a new language.
View parsing_steam_xml.md

Here's a little more help feeling it out, from someone who knows like no python but has some dev experience. Forgive me if this is too simplistic, but since you're starting out, it might be helpful.

My thought process going into a project like this is this:

What is the smallest chunk of this I can do in one logical step? Well I have an XML url I can go to to get a list of games. So I'm going to need to get that into my program. That's step one. And it is all I care about. So how do I do it?

There are really two steps here:

  1. Read the data from the url Kane provided.
  2. Parse the xml, turning it into something you can use in the rest of your code.
View keybase.md

Keybase proof

I hereby claim:

  • I am cjkinni on github.
  • I am cjkinni (https://keybase.io/cjkinni) on keybase.
  • I have a public key ASBi31W5R331lG2Nu_RqRR6T8L3RjWnWgYwsWozm59NoJgo

To claim this, I am signing this object:

View Morrichris.js
// ==UserScript==
// @name Morrichris
// @namespace cjk_cnc
// @description Swap Chris Thursten's Fase with Morrichris
// @include http://www.pcgamer.com/*
// @version 1
// @grant none
// ==/UserScript==
if (document.getElementsByClassName("author-block")[0].children[0].getAttribute('href') == "http://www.pcgamer.com/author/chris-thursten/"){
@CJKinni
CJKinni / Setup
Last active Aug 29, 2015
PowerShell Setup Script
View Setup
# Basic PC Setup - Choco Version
set-executionpolicy unrestricted -s CurrentUser
Y
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install powershell -y
choco install sublimetext3 -y
choco install notepadplusplus.install -y
@CJKinni
CJKinni / pre-commit
Last active Aug 29, 2015
Chrome Extension auto-increment version number and zip extension on commit via git hooks
View pre-commit
#!/usr/bin/env ruby
require 'json'
filename = './manifest.json'
text = File.read(filename)
json = JSON.parse(text)
oldVersion = json['version']
View AnagramSolver.rb
#/usr/bin/ruby
## Name data from http://www.ssa.gov/oact/babynames/limits.html
## Originally used on 8 Aug to find an anagram of a name. Neural.
FILENAME = "/Users/ckinniburgh/Dropbox/Development/AnagramSolver/yob1991.txt"
puts "Input anagram: "
STDOUT.flush
anagram = gets.chomp
@CJKinni
CJKinni / twitterArchiver.rb
Created Jul 6, 2012
Download tweets into archivable text formats
View twitterArchiver.rb
#!/usr/bin/ruby
=begin
This script turns downloadable tweets from twitter into a markdown
based text file timeline.
To run, change the 'Username' and 'TwitterFilename' below.
I THINK that this is all working. Check the previous gist version
for a more stable script with far fewer features. Let me know in the
You can’t perform that action at this time.