Skip to content

Instantly share code, notes, and snippets.

View JDWardle's full-sized avatar
♾️

Jesse Wardle JDWardle

♾️
  • Weave
  • United States
View GitHub Profile
@JDWardle
JDWardle / clone-wars-watch-order.csv
Created April 7, 2020 03:26
Star Wars Clone Wars sequential watch order
order episode name url
1 216 Cat and Mouse https://www.disneyplus.com/video/5faf61af-2ce0-4baa-a647-a4f4363eba0e?cid=DTCI-Synergy-DDN-Site-Acquisition-StarWars-US-StarWars-StarWarsTheCloneWars-EN-BlogArticleEmbed-TCWChronological_StreamOnDisneyPlusCTA-NA
2 116 Hidden Enemy https://www.disneyplus.com/video/7c732b05-b90f-4090-a184-5652be228139?cid=DTCI-Synergy-DDN-Site-Acquisition-StarWars-US-StarWars-StarWarsTheCloneWars-EN-BlogArticleEmbed-TCWChronological_StreamOnDisneyPlusCTA-NA
T The Clone Wars theatrical release https://www.disneyplus.com/movies/star-wars-the-clone-wars/AVmv1ulT1nQW?cid=DTCI-Synergy-DDN-Site-Acquisition-StarWars-US-StarWars-StarWarsTheCloneWars-EN-BlogArticleEmbed-TCWChronological_StreamOnDisneyPlusCTA-NA
3 301 Clone Cadets https://www.disneyplus.com/video/7851718f-2530-47e2-bf32-a8b498b3efa9?cid=DTCI-Synergy-DDN-Site-Acquisition-StarWars-US-StarWars-StarWarsTheCloneWars-EN-BlogArticleEmbed-TCWChronological_StreamOnDisneyPlusCTA-NA
4 303 Supply Lines https://www.disneyplus.com/video/9d78
@JDWardle
JDWardle / test.go
Last active November 25, 2015 21:39
Weird database decoding
package main
import (
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"golang.org/x/crypto/bcrypt"
@JDWardle
JDWardle / scraper.js
Last active August 29, 2015 14:15
Binding of Isaac Wiki Scraper
console.log(scrapeHtml());
function cleanText (text) {
var newText = text;
if (text.toLowerCase().indexOf('[collapse]') > -1) {
newText = newText.toLowerCase().split('[collapse]')[1].trim();
}
return newText;
@JDWardle
JDWardle / $timeout-spy.js
Last active August 29, 2015 14:07
AngularJS Spy On $timeout.
// AngularJS v1.2.26
beforeEach(module(function($provide) {
$provide.decorator('$timeout', function($delegate, $browser) {
var mock = angular.mock.$TimeoutDecorator($delegate, $browser);
// $delegate = jasmine.createSpy().and.callFake($delegate);
$delegate = sinon.spy($delegate);
// Apply the ngMock $timeout functions.
angular.extend($delegate, mock);

Exporting an emblem

  1. Log into BF4 Battlelog.
  2. Visit the Customize emblem page.
  3. Select the emblem you wish to export.
  4. Open the console (Ctrl-Shift-J).
  5. Enter the following code snippet to copy the raw emblem data to the clipboard:
    copy('emblem.emblem.load('+JSON.stringify(emblem.emblem.data,null,2)+');');
  6. Paste somewhere useful, like a gist. Whatever.
  7. Close the console (Ctrl-Shift-J).
@JDWardle
JDWardle / gist:7406561
Created November 11, 2013 01:54
Piggy from Invader Zim for BF4 emblem.
emblem.emblem.load({
"objects": [
{
"opacity": 1,
"angle": 24.5418833622,
"flipX": false,
"flipY": false,
"top": 215,
"height": 56.5804731331,
"width": 37.4916727704,