Skip to content

Instantly share code, notes, and snippets.

View peterschussheim's full-sized avatar

Peter Schussheim peterschussheim

View GitHub Profile
@peterschussheim
peterschussheim / main.cpp
Created May 9, 2020 16:45
Creating a markdown example
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
return 0;
}
@peterschussheim
peterschussheim / update.bash
Created July 29, 2019 13:52
update chrome via command line
/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/CheckForUpdatesNow.command
sudo rm -rf /var/lib/apt/lists/*

Cool project ideas

Mad/Violent Minute

  • a set of questions/icebreakers to get acquanted with someone

Name Generators

  • international names
@peterschussheim
peterschussheim / benchmark.js
Created April 22, 2019 17:00
Benchmark functions for JS map and object
/**
* Source: https://stackoverflow.com/a/54385459/6129793
*
*/
const benchmarkMap = size => {
console.time('benchmarkMap');
var map = new Map();
for (var i = 0; i < size; i++) map.set(i, i);
for (var i = 0; i < size; i++) var x = map.get(i);
@peterschussheim
peterschussheim / readme.md
Created April 10, 2019 00:05
interesting programming-related stuff to try

interesting programming-related stuff to try

currying

When a function that accepts n arguments continues to return a new function if it hasn't yet received all args it needs.

Manual PA

numbers.map(num => add(2, num))

@peterschussheim
peterschussheim / readme.md
Last active March 22, 2019 00:13
pi-hole notes/issues

pi-hole notes/issues

Current Problems

  • way too many sites are taking 10-20+ seconds to load (result until load is a blank page)
  • unsure how to use pi-hole and ublock-origin together
    • should they be used together?
  • current config provides zero insight on the actual client making the request (only visible is gateway)

UI shortcomings

@peterschussheim
peterschussheim / TODO.md
Last active March 16, 2019 21:46
gamma todos

gamma.app todos

Next PR (pub-private)

  • allow users to explicitly create either a public or private gist
    • add buttons 'Create Public Gist' and 'Create Private Gist'
  • allow users to update a private gist so it is publicly visible
    • update DescriptionModal component
  • add title property as quick and dirty substitute for tooltips
  • fix links in the 'notes' section of README.md (remove quotes)