Skip to content

Instantly share code, notes, and snippets.

View dsernst's full-sized avatar
🧘‍♂️
practicing mindfulness

David Ernst dsernst

🧘‍♂️
practicing mindfulness
View GitHub Profile
@dsernst
dsernst / Secure Internet Voting.md
Last active August 2, 2022 09:40
Secure internet voting

Proof-of-Vote: A Simple Cryptosystem for Secure Internet Voting

by David Ernst, www.liquid.us

A method to democratically vote online, that provably ensures to the individual voter that their vote was cast and counted correctly, without tampering, while still protecting their vote privacy.

Note: This is designed for our issue-based liquid democracy platform, not traditional elections.

Goals:

@dsernst
dsernst / visualize_complex_linked_list.md
Created September 13, 2016 09:51
How to arrange a complex linked list? For visualizing Liquid Democracy

How to arrange a complex linked list?

Given a singly linked list like this:

[
  {
    uid: 'a',
    full_name: 'Angela Augustine',
 next: 'c',
@dsernst
dsernst / bmndr-wiki_spam.txt
Created February 4, 2016 06:34
All the changes made to bmndr-wiki.dsernst.com
2 February 2016
(diff | hist) . . Main Page‎; 08:40 . . (0)‎ . . ‎146.185.234.48 (Talk)‎ (aOuwuMqXkNyjSsUaI)
1 February 2016
(diff | hist) . . N Real-World repo software Systems - Insights‎; 19:06 . . (+3,353)‎ . . ‎ReggieAlcala2 (Talk | contribs)‎ (Created page with "Designs are usually obtainable in many diverse designs including high end, signature and compact products, all of which offer excellent worth and fantastic quality. There are ...")
(diff | hist) . . N User:ReggieAlcala2‎; 19:06 . . (+177)‎ . . ‎ReggieAlcala2 (Talk | contribs)‎ (Created page with "Hi there! :) My name is Carissa, I'm a student studying Film Studies from Sandefjord, Norway.<br><br>my website [http://www.misiworld.de/kts/burningbook/index.php Repo Software]")
(diff | hist) . . N Speedy Systems Of repo software‎; 17:03 . . (+3,044)‎ . . ‎TerrellMcLoud (Talk | contribs)‎ (Created page with "There is an excellent consumer protection act in the state of California called the Song-Beverly Consumer Warranty Act, mostly referred to as the
@dsernst
dsernst / comparing-git-add-all.md
Last active January 29, 2025 15:16
Compare `git add .` vs `git add -A`

git add . vs git add -A

Both of these will stage all files, including new files (which git commit -a misses) and deleted files.

The difference is that git add -A also stages files in higher directories that still belong to the same git repository. Here's an example:

/my-repo
  .git/
 subfolder/
@dsernst
dsernst / intro_to_promises.md
Last active January 26, 2016 11:40
Notes for a quick presentation to introduce other developers to Promises

Promises

Why?

  • reclaim simple synchronous control flow like return & throw
  • easier to write and maintain
  • banish callback hell

How?

@dsernst
dsernst / gmail-datetime-to-isodate.js
Created January 26, 2016 02:18
Convert a Gmail datetime into an ISODate for Mongo
// Convert a Gmail datetime into an ISODate for Mongo
function gmailToIso(string) {
return 'ISODate("' + new Date(string.split('at ').join('')).toISOString() + '")'
}

https://www.youtube.com/watch?v=U3_VUWWh7iw

  • white indents are the ones I wasn't with him for
    • Miami
  • Dallas
  • Somewhere near Portland (Oregon)
    • Campbell Falls (Massachusetts)
  • Chicago
  • Glacier National Park (Montana)
  • Thermopiles (Wyoming)
@dsernst
dsernst / fun-things-around-sf.md
Created December 29, 2015 18:53
Fun things in San Francisco

Fun things in San Francisco

A friend was visiting town so we were coming up with some of the best things to show him in San Francisco. These are some of my favorites:

  • Palace of Fine Arts
  • Walking around civic center / downtown / Financial District
  • Cable cars
  • Ocean Beach
  • Sutro Baths & Lands End
  • exploring Golden Gate Park
@dsernst
dsernst / talk-ideas.md
Created December 29, 2015 18:38
Longer Hack Reactor Lecture ideas

Longer Hack Reactor Lecture ideas:

  • Famous problems in computer science
  • how to send encrypted messages
  • passwords are obsolete
  • important events in the history of open-source
  • the earliest computers
  • why do people care about bitcoin?
  • Gödel's Incompleteness Theorem
  • most common biases that confuse our thinking
@dsernst
dsernst / atom-stylesheet.less
Created October 8, 2015 22:18
My custom style modifications to Atom
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/