Skip to content

Instantly share code, notes, and snippets.

@veekaybee
veekaybee / normcore-llm.md
Last active November 18, 2024 19:40
Normcore LLM Reads

Anti-hype LLM reading list

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.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@brianarn
brianarn / akkala-lyrics.txt
Created April 4, 2017 21:43
Akkala (cover of "Africa" by Toto)
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
@maxmechanic
maxmechanic / es6curry.js
Created September 4, 2015 17:55
es6 curry
// 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)
};
@jimfingal
jimfingal / Aphorisms.md
Last active August 29, 2015 14:13
A python port of Darius Kazemi's "Aphorism detection for fun but definitely not profit" -- http://tinysubversions.com/notes/aphorism-detection

Aphorism Detection in Python

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.
@moonmilk
moonmilk / README.md
Last active November 29, 2023 01:48
manually authorize a twitter app to a twitter account

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!

ignore this and go down to the comments for better solutions

  • 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
@ckolderup
ckolderup / gist:efb9ff0635eee61ab3fb
Created October 9, 2014 20:10
get titles of all top hacker news stories
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"
@jennschiffer
jennschiffer / snort.md
Last active October 8, 2018 14:33
Snort

Snort Config

Author: yournamehere

Last Updated: datehere

Tasks

  • compile california style sheets
  • update scripts
  • make the code minified

License

@mikeal
mikeal / gist:6685843
Last active December 23, 2015 19:58
Response to comments by Issac Roth of StrongLoop

This is rather out of date and we've all moved past it. Me and Issac are cool now.

pic

@mwotton
mwotton / stupid axe ad
Created August 3, 2013 23:45
whee, i made their pointless C compile!
typedef struct {
int girlfriend;
} holder;
typedef struct {
holder a;
} toplevel;
typedef struct {
int this;