This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PI_REPO="https://[email protected]/DanTup/Pi.git" | |
# Danny's Pi Setup script | |
# | |
# This script is intended to be run from a newly set up Raspbian install. It just clones my | |
# (private) Pi repo which contains further scripts and executes them. It will prompt for a | |
# GitHub access key during the clone because the repo is private. | |
# | |
# Run with: | |
# bash <(curl -sSL https://gist.github.com/DanTup/bcdf20cb300e40c628e8/raw/Setup) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Only tested in Chrome... | |
// Must browse to "Your Comments" (or "Your Likes") page of activity feed, then pre-load the year you want to delete | |
// and as many comments as possible (scroll down, they load lazily). | |
// | |
// I ACCEPT ABSOLUTELY NO RESPONSIBILITY FOR THIS DOING BAD STUFF. THE NEXT FACEBOOK DEPLOYMENT | |
// COULD WELL BREAK THIS, OR MAKE IT DO THINGS YOU DO NOT EXPECT. USE IT AS A STARTING POINT ONLY! | |
// | |
// It will start failing once it gets to the end, just reload the page and kick it off again. | |
var rows = document.querySelectorAll('#year_2012 .pam._5shk'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MySecondGame</title> | |
</head> | |
<body> | |
<canvas width="1024" height="768"></canvas> | |
<div style="display: none;"> | |
<img id="img-player" src="assets/player.png" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:smoke/smoke.dart' as smoke; | |
@MirrorsUsed(targets: const [SimpleWithMirrors, Simple], override: '*') | |
import 'dart:mirrors'; | |
abstract class Serializable { | |
static fromJson(Type t, Map json) { | |
var typeMirror = reflectType(t); | |
T obj = typeMirror.newInstance(new Symbol(""), const[]).reflectee; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A list of all event types; these are basically used as strings, because we can't(?) | |
// get a nice unique name from a TS Class to use for the event name | |
enum EventType { | |
SendTheStuff | |
}; | |
// All events must at least give us the EventType that we can convert to a string | |
interface IEvent { | |
EventType: EventType; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS M:\Coding\TestApps\AngularTest> npm install angular/angular.js --save-dev | |
npm ERR! git fetch -a origin (git://github.com/angular/angular.js) fatal: refs/remotes/origin/v1.0.x tracks both refs/heads/v1.0.x and refs/remotes/origin/v1.0.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Creates "PowerShell Here" shortcuts on context menu for | |
; | |
; a) right-clicking on a folder | |
; b) right-clicking in the blank space when inside a folder (eg. already inside the folder) | |
; c) right-clicking in the blank space when inside a folder that's inside a library | |
; | |
; Uses cmd start to launch normal Powershell shortcut so that the normal PowerShell shortcut | |
; colours/settings are preserved (blue, not black/white) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let [<Given>] ``something`` () = () | |
let [<Given>] ``something else`` () = () | |
--- | |
Scenario: TestStuff | |
Given something | |
and something else | |
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> | |
</head> | |
<frameset rows="70,*"> | |
<frame src="about:blank"> | |
<frameset cols="165,*"> | |
<frame src="about:blank"> | |
<frame src="settings.htm"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launch Kiln for current repo | |
Function Kiln | |
{ | |
if (Test-Path ".\.hg\hgrc") | |
{ | |
$repoUrl = (Select-String "default = (.*)" -Path ".\.hg\hgrc" -AllMatches).Matches.Groups[1].Value | |
Start $repoUrl | |
} | |
else | |
{ Write-Warning "Not in a repo!" } |