Skip to content

Instantly share code, notes, and snippets.

View kortina's full-sized avatar

kortina kortina

View GitHub Profile
@kortina
kortina / LebowskiPhrases.csv
Created March 28, 2021 04:23 — forked from zacs/LebowskiPhrases.csv
Text segmentation analysis of the Big Lebowski script, looking for multi-word phrase size and frequency.
Phrase Word Count Frequency
this is what happens when you fuck a stranger in the ass 12 2
he lives in north hollywood on radford near the in-and-out burger 11 2
it's a complicated case maude lotta ins lotta outs 9 2
so what the fuck are you talking about 8 2
what the fuck are you talking about 7 6
what the fuck is he talking about 7 2
we know that this is your homework 7 2
we throw the money out of the 7 2
you're out of your element this chinaman 7 2
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
// Step 1: Get an API key here: https://developers.google.com/url-shortener/v1/getting_started#APIKey
// Step 2: Paste your api key below
// Step 3: Add the code below to your browser as a bookmark
// Step 4: Visit a non-goo.gl URL and click your bookmark
// NOTE: The security policy of some sites (such as this gist.github.com!) will prevent this from working.
// Check your javascript console if something doesn't work.
javascript:(function(){
var googleApiKey = 'INSERT YOUR API KEY HERE';
@kortina
kortina / postgres_queries_and_commands.sql
Created February 22, 2017 05:35 — forked from indigoviolet/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'