Skip to content

Instantly share code, notes, and snippets.

@itsananderson
itsananderson / README.md
Last active September 16, 2016 18:30
List your GitHub repositories missing a LICENSE file

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>

Three.JS Cubes

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 November 25, 2015 07:26
Loading a Power BI dashboard tile in a XAML app
<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 July 19, 2015 06:09
Solution for the consecutive numbers problem
// 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 August 29, 2015 14:25
Azure 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 July 17, 2015 05:58
My first ever web page
<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 July 13, 2015 09:21
Top three subreddits by month (based on posted comments) https://github.com/itsananderson/reddit-comment-data/
$ ./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 August 29, 2015 14:24
Subreddit comment distribution by month - 2007
@itsananderson
itsananderson / index.html
Last active August 29, 2015 14:24 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.chord {
fill-opacity: .67;