Skip to content

Instantly share code, notes, and snippets.

View patrickt's full-sized avatar
🍉

Patrick Thomson patrickt

🍉
View GitHub Profile
####
####
####
####
######
###########
################
####################
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-sun-solaris2.11".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/snapboard-5c24579/snapboard...done.
execve("snapboard", 0xFFFFFD7FFFDFFB78, 0xFFFFFD7FFFDFFB98) argc = 3
sysinfo(SI_MACHINE, "i86pc", 257) = 6
mmap(0x00000000, 56, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF390000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF380000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF370000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF360000
memcntl(0xFFFFFD7FFF398000, 96992, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF350000
memcntl(0x00400000, 16885696, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/usr/lib/amd64/ld.so.1", "/lib/amd64/ld.so.1", 1023) = 18

A Minimally Painful Guide to Monad Transformers

Why use monad transfomers? Well, we can take code that looks like this:

contentTypesProvided = do
  macM <- HM.lookup "mac" <$> params
  case macM of
 (Just aMac) -&gt; do
;;; init.el -- NixOS-specific init file
;;; Commentary:
;; seriously, fuck computers
;;; Code:
(add-to-list 'default-frame-alist '(height . 55))
(add-to-list 'default-frame-alist '(width . 188))

Vince Staples - Summertime '06

9.5/10

Def Jam

Trauma has left its mark on Vince Staples. "You can ask anybody that knows me—I hate when it's loud around me," he intones [in an interview with Noisey][interview]. "I grew up in a very loud place. I heard a lot of ambulances, a lot of helicopters, a lot of gunshots that never made it to the news [...] Niggas who know me like 'Vince, you don't have fun!' I'm like 'Nah, I don't have time for that.'" Summertime '06, Staples's major-label debut, is a record of trauma -- Staples plays the role of war correspondent, grimly chronicling the violence endemic to his hometown of Long Beach. It is an extraordinary record, among the best rap debuts in decades, both jeremiad and paean to lost innocence.

Staples's rise to fame has been slow: his early-2010s features with Odd Future brought him critical acclaim, as Vince is one of the few whose verbal and poetic talents matched (and sometimes exceeded) OF's lyrical-genius-in-residence Earl Sweatshirt. It took some

def abbrevify(word):
assert(len(word) >= 4)
num = len(word) - 2
return word[0] + str(num) + word[-1]
results = {}
for word in open('/usr/share/dict/words'):
word = word.strip()
if len(word) >= 4 and word.islower():
/usr/local/Cellar/ghc/7.8.3/lib/ghc-7.8.3/package.conf.d:
Cabal-1.18.1.4
array-0.5.0.0
base-4.7.0.1
bin-package-db-0.0.0.0
binary-0.7.1.0
rts-1.0
bytestring-0.10.4.0
containers-0.5.5.1
deepseq-1.3.0.2
%************************************************************************
%* *
\section[Driver-asm-fiddling]{Fiddling with assembler files}
%* *
%************************************************************************
Tasks:
\begin{itemize}
\item
Utterly stomp out C functions' prologues and epilogues; i.e., the

Keybase proof

I hereby claim:

  • I am patrickt on github.
  • I am patrickthomson (https://keybase.io/patrickthomson) on keybase.
  • I have a public key whose fingerprint is 9D65 E965 6644 113D FF41 B6BD B4C5 5885 9AE8 8E00

To claim this, I am signing this object: