Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
I hear no princess in the night | |
But Link hears all her whispers of defenestration | |
He’s coming in, paraglider flight | |
The sheikah slate reflects the past that guides him toward salvation | |
Got stopped by an old man along the way | |
Hoping to find some long forgotten tech or ancient memories | |
He turned to me as if to say, “Hurry boy, she’s waiting there for you" | |
It's gonna take a lot to clean up all that evil goo | |
There's nothing in a hundred years or more that they could do |
// es6 riff on https://medium.com/@kevincennis/currying-in-javascript-c66080543528 | |
function curry(fn) { | |
const arity = fn.length | |
return (function resolver(...memory) { | |
return function(...args) { | |
const local = memory.concat(args) | |
const next = local.length >= arity ? fn : resolver | |
return next(...local) | |
}; |
After reading Darius Kazemi's post, "Aphorism detection for fun but definitely not profit", I wanted in -- I've done a number of text-focused bots, but none that did anything more advanced than tokenizing things and making use of ngrams with Markov chains. I have some experience with NLP in Python so thought it would be fun to port it.
The essence of Darius's algorithm is:
- Read in Corpus
- Tokenize corpus into sentences
- Filter out sentences that match a few basic patterns
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
So you're writting a twitterbot and you need to authorize your application to post to the account. You need an access token and secret for the account you're posting to. If the posting account is the same account that owns the application, no problem, you just push the button on your application's settings page to make the keys. But if you want to post to a different twitter account, there's no UI on apps.twitter.com to authorize it. So I made this bare-minimum node server to run through the authorization process. There's probably a much better way to do this, so please let me know what that way is!
- You'll need a server with node.js!
- Make sure your application has a callback URL specified in its settings page, even if it's just a placeholder. If there's nothing in the callback URL slot, this method of authorization won't work.
- In authorize.js, fill in your application's consumer key and secret, and the domain on which you'll be running th
curl -s -S "https://hacker-news.firebaseio.com/v0/topstories.json" | jq ".[]" | xargs -I % curl -s -S "https://hacker-news.firebaseio.com/v0/item/%.json" | jq ".title" |
typedef struct { | |
int girlfriend; | |
} holder; | |
typedef struct { | |
holder a; | |
} toplevel; | |
typedef struct { | |
int this; |