Skip to content

Instantly share code, notes, and snippets.

View aryamanarora's full-sized avatar
😮

Aryaman Arora aryamanarora

😮
View GitHub Profile
@aryamanarora
aryamanarora / 32.asm
Created January 13, 2017 17:11 — forked from FiloSottile/32.asm
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
start:
push dword msg.len
push dword msg
push dword 1
mov eax, 4
@aryamanarora
aryamanarora / org-mode-reference-in.org
Created January 3, 2017 16:28 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
import numpy as np
import matplotlib.pyplot as plt
def fun(x):
#This is where all the info on the function goes
if x < 28:
return 100000*x - 2721000
else:
return 79000