Skip to content

Instantly share code, notes, and snippets.

Pomax Pomax

Block or report user

Report or block Pomax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bc.html
<meta charset="utf-8">
cvs = document.createElement('canvas');
function drawFlag() {
View mini-templating.js
(function buildTagFunctions(global) {
// Just enough tags to generate all the client content
const tags = [
Pomax / task-timer.js
Last active Mar 1, 2019
A JS taskrunner with timeout capability
View task-timer.js
* A resolver class that will run the function
* passed as `startWaiting`, with a concurrent
* timeout running that will trigger the
* `timeoutFunction` function after a specific
* number of milliseconds.
* This timeout can be paused using `.pause()`,
* which will return a promise that can be
* `await`ed to effect a non-blocking "pause".
View promise-shim.js
if (enviroment !== "PRODUCTION") {
class LintablePromise extends Promise {
constructor(resolve, reject) {
if ("resolve") < 0 ||"reject") < 0) {
"Possible incorrect invocation of Promise(resolve, reject).\n",
"Ensure that the handling functions' names contain 'resolve' and 'reject'."
Pomax / SteamTagSort.js
Last active Jul 3, 2017
Sort the list of tags on because why the hell are those not sorted?
View SteamTagSort.js
* Open your dev console, copy paste this entire script, hit enter.
* This script will sort all tags alphabetically, and will add
* section headings based on tag initials (0-9, A, B, etc).
* Also, never trust a script someone tells you to run: when I wrote
* this the only thing the code did was create and reorder DOM elements,
* without any active elements loading additional resources through
* `<script>` tags, `href` attributes, `XMLHTTPRequest` or `fetch()`
View Windows 10 Bullshit.txt
Get-AppxPackage *xbox* | Remove-AppxPackage
Get-AppxPackage *zune* | Remove-AppxPackage
Get-AppxPackage Microsoft.AAD.BrokerPlugin | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.CloudExperienceHost | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.Cortana | Remove-AppxPackage
Get-AppxPackage Microsoft.PPIProjection | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.SecondaryTileExperience | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxGameCallableUI | Remove-AppxPackage
Get-AppxPackage Windows.MiracastView | Remove-AppxPackage

This is an onboarding document that describes how the learning site works from a code and runtime perspective.

1. content serving via app.js

  • route checks:
    • redirect -> redirect client
    • route based on lib/routes.jsx
      • render page to HTML
View gist:9b406a121070451540f7a8c5c066b740
terms that ruinmysearchhistory uses, from
'how to appear funny',
'why are my thumbs uneven',
'am i lack toast and tolerant',
'your youre difference',
'why doesnt my poo float',
'midget google images',
'tall midgets??',
Pomax / tree.js
Created Apr 7, 2016
A silly but effective JS tree datastructure
View tree.js
* Basic tree implementation.
function Tree(value) {
this.value = value || false;
this.parent = false;
this.children = [];
Tree.prototype = {
Pomax / script.js
Created Feb 25, 2016
A circle nav for the new webliteracies
View script.js
var sin = Math.sin, cos = Math.cos, pi = Math.PI, tau = 2*pi, random = Math.random;
var PS = "Problem-Solving",
CM = "Communication",
CR = "Creativity",
CL = "Collaboration";
function color(v) {
if (typeof v === 'number') {
You can’t perform that action at this time.