Skip to content

Instantly share code, notes, and snippets.

@williardx
williardx / example.js
Created December 26, 2019 04:29
Imperative and OOP vs. functional programming code example
// OOP anad imperative example
class Todo {
constructor(action, assignee) {
this.action = action
this.assignee = assignee
this.complete = false
}
toggleComplete() {

Keybase proof

I hereby claim:

  • I am williardx on github.
  • I am wrd (https://keybase.io/wrd) on keybase.
  • I have a public key whose fingerprint is 3682 098C 5FDD B16F C9B8 7A36 F3AE D1BE FFA5 478C

To claim this, I am signing this object:

@williardx
williardx / random_topic.py
Created February 1, 2017 21:42
Create a list of random topics from ConceptNet
"""Generates a list of random related concepts from ConceptNet. Concepts are
generated via a random walk through ConceptNet using ConceptNet's /assoc
endpoint, which takes in a list of concepts and ouptputs a list of related
concepts ranked by similarity to the given concepts.
Example:
| => python random_topic.py
Current topics are apocalypse and desert_island
Current topics are desert_island and real_world
Current topics are real_world and scienceless
@williardx
williardx / keybase.md
Created December 30, 2014 06:14
keybase

Keybase proof

I hereby claim:

  • I am wdoenlen on github.
  • I am wrd (https://keybase.io/wrd) on keybase.
  • I have a public key whose fingerprint is 179C 0DF3 778B 185C 6765 D0FD ED61 11DB 0FF5 6774

To claim this, I am signing this object: