Skip to content

Instantly share code, notes, and snippets.

View dubpirate's full-sized avatar
🏠
whats good

William dubpirate

🏠
whats good
  • Calibrate Marketing
  • Auckland, New Zealand
View GitHub Profile
@dubpirate
dubpirate / index.html
Created December 3, 2018 00:07
platform created by dubpirate - https://repl.it/@dubpirate/platform
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>p5js Platform Mechanics</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
@dubpirate
dubpirate / main.py
Created April 11, 2019 02:07
MatrixFlipper created by dubpirate - https://repl.it/@dubpirate/MatrixFlipper
import numpy as np
lmin = -3 # (0 - (layers/2 round down))
lmax = 3 # layers/2 round down
# Creates a 4x4 Matrix where every object is a tuple: (x, y) <- Tuple
matrix = np.zeros((4, 4), dtype=tuple)
# Fill the matrix with the tuples corrosponding to the x, y, values.
for x in range(0, 4):
@dubpirate
dubpirate / the_menu.py
Last active February 13, 2020 03:42
I'm sure we've all heard the joke about "eating the rich" so here's the menu! It scrapes the Wikipedia page of richest Americans, then scrapes their wikipedia pages for their net worth, then saves it all as a csv. Please not this is NOT how I actually name variables, I just thought it was funny :). Something I whipped up for a job application at…
from bs4 import BeautifulSoup
import csv
import requests
url = "https://en.wikipedia.org/wiki/List_of_Americans_by_net_worth"
req = requests.get(url)
soup = BeautifulSoup(req.content, 'html5lib')
@dubpirate
dubpirate / keybase.md
Created April 29, 2020 23:17
Verifying my Identity for Keybase

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#xcode-select --install
#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# This file is shamelessly stolen from the Medium article:
# https://medium.com/@jkudo/how-to-use-a-virtual-camera-for-zoom-microsoft-teams-and-google-meet-in-obs-for-macos-2ffc831dd76b
# Clone and build OBS
git clone --recursive https://github.com/obsproject/obs-studio.git
@dubpirate
dubpirate / start_obs_mac.sh
Created May 16, 2020 01:37
This runs the OBS program as installed in the gist.
cd ./obs-studio/build/rundir/RelWithDebInfo/bin
./obs
@dubpirate
dubpirate / Wikipedia.md
Created September 24, 2020 00:02
I'm on Wikipedia

It is I, Will.torkington

I know you're super curious to know who this mysterious Will.torkington is on Wikipedia is. Well, I'm here to tell you that it is infact me, William Torkington. Yes, yes, I know, shock, horror, denial.

I will update this gist with some pages I've edited or created, once I'm proud of any. For the mean time, check out my GitHub page and please give me a job.

@dubpirate
dubpirate / torkinwill.md
Last active October 22, 2020 08:52
COMP313 Code Reflection

Code Reflection

22|10|20

Header Info

  • William Torkington
  • torkinwill
  • Lead Developer

Code Discussion

@dubpirate
dubpirate / spnet.php
Created December 15, 2021 00:45
Accessing SPNet fields
<?php // There does not seem to be any documentation for spnet so I thought I would through this up. ?>
<?php echo get_post_meta($post->ID, 'spnet_XXXXXX', true); ?>
<?php // get_post_meta docs: https://developer.wordpress.org/reference/functions/get_post_meta/ ?>
@dubpirate
dubpirate / definitions.html
Created April 2, 2022 06:20
Get to da Java!
<article id="definitions" class="content">
<h1>Definitions</h1>
<section class="summary" data-class-title="AbstractActivity">
<h1 class="api-title"><a name="/definitions/AbstractActivity"></a>AbstractActivity </h1>
<div class="params -properties">
<h2>Properties</h2>
<table>