Skip to content

Instantly share code, notes, and snippets.

Avatar

Will Anderson itsananderson

View GitHub Profile
@itsananderson
itsananderson / README.md
Last active Sep 16, 2016
List your GitHub repositories missing a LICENSE file
View README.md

Get a token from https://github.com/settings/tokens

npm install babel-cli babel-preset-es2015 request
mkdir out
./node_modules/.bin/babel index.js -o out/index.js
node out/index.js <token>
View gist:90efc2358774dbbb8195
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
@itsananderson
itsananderson / MainPage.xaml
Last active Nov 25, 2015
Loading a Power BI dashboard tile in a XAML app
View MainPage.xaml
<Page
x:Class="App2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
@itsananderson
itsananderson / consecutive.js
Created Jul 19, 2015
Solution for the consecutive numbers problem
View consecutive.js
// It's a bit messy, but it seems to work
function player(name) {
this.name = name;
this.questionCount = 0;
this.number;
}
player.prototype.setOther = function(other, otherNumber) {
this.other = other;
@itsananderson
itsananderson / web.config
Last active Aug 29, 2015
Azure web.config
View web.config
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>
@itsananderson
itsananderson / WillWideWeb.htm
Created Jul 17, 2015
My first ever web page
View WillWideWeb.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<h1>Will's page </h1>
My name is <b>Will</b>. I am <font size="&#43;1" color="red">11</font> years old.
<p>This is a new paragraph. </p>
</body>
</html>
@itsananderson
itsananderson / topthree.txt
Created Jul 13, 2015
Top three subreddits by month (based on posted comments) https://github.com/itsananderson/reddit-comment-data/
View topthree.txt
$ ./topthree.sh
./out/RC_2007-10.json | reddit.com 88601 | politics 34088 | programming 16162
./out/RC_2007-11.json | reddit.com 223377 | politics 88473 | programming 32838
./out/RC_2007-12.json | reddit.com 195181 | politics 112025 | programming 31726
./out/RC_2008-01.json | reddit.com 234405 | politics 144953 | programming 39374
./out/RC_2008-02.json | reddit.com 247924 | politics 109893 | programming 31063
./out/RC_2008-03.json | reddit.com 207092 | politics 83375 | programming 34642
./out/RC_2008-04.json | reddit.com 140944 | politics 64532 | programming 40958
./out/RC_2008-05.json | reddit.com 149251 | politics 74204 | pics 44095
./out/RC_2008-06.json | reddit.com 125032 | politics 74453 | pics 40568
@itsananderson
itsananderson / 0.README.md
Last active Aug 29, 2015
Subreddit comment distribution by month - 2007
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.chord {
fill-opacity: .67;