Skip to content

Instantly share code, notes, and snippets.

View isaacg1's full-sized avatar

Izzy Grosof isaacg1

  • UIUC
View GitHub Profile
@isaacg1
isaacg1 / PPCGDesign.js
Created January 5, 2016 10:55 — forked from vihanb/PPCGDesign.js
A userscript to redesign the PPCG website
// ==UserScript==
// @name PPCG Design
// @namespace Doᴡɴɢᴏᴀᴛ
// @version 1
// @author Doᴡɴɢᴏᴀᴛ
// @grant none
// ==/UserScript==
function qS(x){
return document.querySelector(x);
for i in range(1, 101): # 5
if not i % 15: # 5
print("FizzBuzz") # 2
elif not i % 3: # 5
print("Fizz") # 2
elif not i % 5: # 5
print("Buzz") # 2
else: # 1
print(i) # 2
# 29
use std::collections::HashSet;
use std::fs::File;
use std::io::prelude::*;
fn main() {
/* let rooms = "aaaaa-bbb-z-y-x-123[abxyz]
a-b-c-d-e-f-g-h-987[abcde]
not-a-real-room-404[oarel]
totally-real-room-200[decoy]";
*/
I made an example gists.
Isn't it nice?
I made an example gists.
Isn't it nice?
This file has been truncated, but you can view the full file.
A
A's
AA's
AB's
ABM's
AC's
ACTH's
AI's
AIDS's
AM's
@isaacg1
isaacg1 / main.rs
Created July 6, 2017 05:54
Match issue
fn row_to_string(row: &Row) -> String {
// Details unimportant
}
let matches: Vec<(usize, usize)> = self.core
.rows
.iter()
.enumerate()
.flat_map(|(row_index, row)| {
row_to_string(row)
### Keybase proof
I hereby claim:
* I am isaacg1 on github.
* I am isaacg (https://keybase.io/isaacg) on keybase.
* I have a public key ASDifHpQrs_Pmz4qfb6ih8S6GsJd-jYkHdC3x9vy8wztHQo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am isaacg1 on github.
  • I am isaacg (https://keybase.io/isaacg) on keybase.
  • I have a public key ASDifHpQrs_Pmz4qfb6ih8S6GsJd-jYkHdC3x9vy8wztHQo

To claim this, I am signing this object: