Skip to content

Instantly share code, notes, and snippets.

Avatar
🐙

Aurelia Moser auremoser

🐙
View GitHub Profile
@maxogden
maxogden / bibtex.png
Last active Apr 1, 2021
How to make a scientific looking PDF from markdown (with bibliography)
View essential-javascript-links.md
@cartazio
cartazio / gist:5350669
Created Apr 10, 2013
nice assembly generated from functional haskell code
View gist:5350669

#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
View gist:3687639
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
Order dataframe by columns
View Sorting dataframes in R
descending
df[with(df, order(-a)), ]
or
df[order(-df$col1),]
ascending
@steren
steren / index.html
Created Nov 18, 2010
call Wikipedia API using jQuery and parse result
View index.html
<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);