Skip to content

Instantly share code, notes, and snippets.

View auremoser's full-sized avatar
🐙

Aurelia Moser auremoser

🐙
View GitHub Profile
@max-mapper
max-mapper / bibtex.png
Last active March 10, 2024 21:53
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@ericelliott
ericelliott / essential-javascript-links.md
Last active February 24, 2024 17:28
Essential JavaScript Links
@cartazio
cartazio / gist:5350669
Created April 10, 2013 00:27
nice assembly generated from functional haskell code

#ghc asm backend

                                              _s1Mj_info:
0x00000000000018c0 4983C410                        addq       $0x10, %r12
0x00000000000018c4 4D3BA590000000                  cmpq       %ds:0x90(%r13), %r12
0x00000000000018cb 0F873D010000                    jal        $0x1a0e
0x00000000000018d1 48B8FFFF00000000FFFF            movq       $0xffff00000000ffff, %rax
0x00000000000018db 488B4B07                        movq       %ds:0x7(%rbx), %rcx
0x00000000000018df 4821C1                          andq       %rax, %rcx
find: ([a-z]) (["])([a-z])
replace: $1 \\$2$3
find: .""
replace: ./""
find: ([a-z])(["]) ([a-z])
replace: $1\\$2 $3
@mhkeller
mhkeller / Sorting dataframes in R
Created May 4, 2012 18:36
Order dataframe by columns
descending
df[with(df, order(-a)), ]
or
df[order(-df$col1),]
ascending
@steren
steren / index.html
Created November 18, 2010 02:24
call Wikipedia API using jQuery and parse result
<div id="insertTest"></div>
<script>
var wikipediaHTMLResult = function(data) {
var readData = $('<div>' + data.parse.text.* + '</div>');
// handle redirects
var redirect = readData.find('li:contains("REDIRECT") a').text();
if(redirect != '') {
callWikipediaAPI(redirect);