Skip to content

Instantly share code, notes, and snippets.

View drewstaylor's full-sized avatar
:octocat:
Meow

Drew Taylor drewstaylor

:octocat:
Meow
View GitHub Profile
@drewstaylor
drewstaylor / 27547452418984864.rs
Last active August 4, 2021 19:55
SATOSHI'S LOST FAUCET - Genesis Exhibit (-50n shills)
/**
* Leonard is having trouble with his program, but the flame is its own reflection. Perhaps his coding skills are just rusty.
* Do you have the patience and memory capacity to compute this simplest of equations? Shouldn't human brain power be enough?
*/
fn make(n: u32) -> u32 {
match n {
0 => 1,
1 => 1,
_ => make(n-1) + make(n-2),
}
@drewstaylor
drewstaylor / hypercube.m
Created June 28, 2021 12:31 — forked from mross-ua/hypercube.m
Tesseract (hypercube) in Matlab
% 4-Dimensional Object: The Tesseract
% Matlab script
%
% Copyright 2009 Ian E., Adam H., Mark Ross <[email protected]>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
@drewstaylor
drewstaylor / uanon.ascension.py
Last active April 11, 2021 00:26
Project Uanon - Generating proofs in Python
'''
Example 2 looks at ascensions, which are special end of season puzzles. They require you submit all previous proofs of the season, in consecutive order, as well as the passwords of the current puzzle. Hashing rounds are increased for all puzzles with rewards. If a puzzle has rewards but isn't the final puzzle of that season, you won't need to submit all of the sub proofs in addition to the current passwords, but you will need to increase the rounds of hashing. You can access this ascension example at https://uanon.observer/learn, but only if you're holding the correct sub-proofs.
Title: Through darkness and the ages, softly
Description: We ascend
Public Key: afbda72bc5ca82bc61d800fcc8fdfa4f059d95e58879795863b34525ded88fce
Operation: oorfEK3FTyx3ha5FPY8vmpEQ86z1xQemVMXGd5BkNbqRPJTXHpq
Format: Separate the sentences and add spaces between words. Cipher provides the case. No punctuation.
Hint: Solution 4 is a single character, if you're confused get your faqs straight
'''
@drewstaylor
drewstaylor / timezone.js
Created October 4, 2020 18:53
List of timezones supported in Node.js
const Timezones = [
'Europe/Andorra',
'Asia/Dubai',
'Asia/Kabul',
'Europe/Tirane',
'Asia/Yerevan',
'Antarctica/Casey',
'Antarctica/Davis',
'Antarctica/DumontDUrville',
'Antarctica/Mawson',
@drewstaylor
drewstaylor / permutations.go
Created May 11, 2020 19:05
GoLang permutations calculator
// Permutation generator in Golang (array of strings)
package main
import (
"fmt"
"strings"
)
func nextPerm(p []int) {
for i := len(p) - 1; i >= 0; i-- {

Keybase proof

I hereby claim:

  • I am drewstaylor on github.
  • I am richgirlonlsd (https://keybase.io/richgirlonlsd) on keybase.
  • I have a public key ASBEkpIx1wnkifa3cgORx6A7URMyYgaATutgV9bPVS-ufQo

To claim this, I am signing this object:

0xB28c6D3B5234A507C8a482562E3f1834704E57A0