Skip to content

Instantly share code, notes, and snippets.

@michaelt
michaelt / latex.template
Created June 9, 2011 21:23
Simple Pandoc default.latex with comments
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
anonymous
anonymous / gist:4645194
Created January 26, 2013 22:58
Thesaurus for Up-goer five
This file has been truncated, but you can view the full file.
a la mode:in,now
a priori:back,early
ab ovo:again,first,new
Abaddon:hell
abandon:cut,disappear,drop,end,fire,forget,fun,hold,jump,kick,leave,miss,play,shake,stay,stop
abandoned:fast,free,high,hot,left,mad,old,open,out,serious,warm
abash:bother,confuse
abashed:lost
abate:allow,close,control,cut,drop,fall,lay,relax,shake,wear
abatement:cut
@quchen
quchen / trolling_haskell
Last active October 10, 2025 04:32
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@plesner
plesner / polyenum.hs
Last active February 9, 2017 02:55
Polynomial range function in haskell
-- Given a list of values, returns a list of the differences between
-- neighbouring pairs of values.
nextLevelDiffs (a:b:rest) = (b - a):(nextLevelDiffs (b:rest))
nextLevelDiffs _ = []
-- Given a list of values, returns a list of the differences such that the
-- first element is the 0-level differences, the second the 1-level and so
-- on.
nLevelDiffs [] = []
nLevelDiffs elms = elms:(nLevelDiffs (nextLevelDiffs elms))
@Francesco149
Francesco149 / shige-skins.md
Last active March 31, 2024 14:53
Shigetora / Cookiezi skin compilation
@gelisam
gelisam / Main.hs
Last active December 13, 2022 02:56
write a Gloss Picture to a file or an animation to a series of files
-- in response to https://www.reddit.com/r/haskell/comments/3u5s4e/is_there_a_way_to_write_the_frames_of_a_gloss/
import Codec.Picture.Types (Image(..), PixelRGBA8)
import Codec.Picture.Png (writePng)
import Control.Monad (forM_)
import Data.Vector.Storable (Vector, unsafeFromForeignPtr0)
import qualified Graphics.Gloss as Gloss
import qualified Graphics.Gloss.Rendering as Gloss
import Graphics.Rendering.OpenGL.Raw -- as gl*
import qualified Graphics.UI.GLFW as GLFW
@meepoSenpai
meepoSenpai / .Xresources
Last active November 6, 2016 03:41
Dotfiles
*color0: #201d1f
*color1: #a0929a
*color2: #a0949d
*color3: #a0969c
*color4: #a0989e
*color5: #a0989c
*color6: #a0989d
*color7: #a09a9e
*color8: #888587
*color9: #c8c5c6
anonymous
anonymous / GAME_MASTER_v0_1.protobuf
Created July 16, 2016 16:31
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@sjl
sjl / qud-item-values
Last active May 5, 2022 07:45
Item values in Caves of Qud, sorted by value/weight ratio
PRICE/WEIGHT | ITEM-KEY | DISPLAY-NAME | PRICE | WEIGHT
10000.0 | HANDENUKE | &mHand-E-Nuke | 10000.0 | 1.0
3000.0 | TIMECUBE | &ctimecube | 3000.0 | 1.0
2265.0 | MENTAL-AGGREGATOR | mental aggregator | 2265.0 | 1.0
1135.0 | SHORT-SWORD8 | &rmetametal &Kshort sword | 1135.0 | 1.0
750.0 | GEOMAGNETIC-DISC | geomagnetic disc | 750.0 | 1.0
635.0 | DAGGER8 | &rmetametal dagger | 635.0 | 1.0
630.0 | SHORT-SW
anonymous
anonymous / Bonsai.sh
Created February 21, 2017 01:47
#!/bin/bash
echo -e " \e[32m&&"
echo -e " \e[32m&&&&&"
echo -e " \e[32m&&&\/& &&&"
echo -e " \e[32m&&\e[33m|,/ |/\e[32m& &&"
echo -e " \e[32m&&\e[33m/ / /_\e[32m& &&"
echo -e " \e[33m\ { |_____/_\e[32m&"
echo -e " \e[33m{ / / \e[32m&&&"
echo -e " \e[33m.\`. \\{___\________\/_\}"
echo -e " \e[33m\} \}\{ \\"