Skip to content

Instantly share code, notes, and snippets.

@svanellewee
Last active June 11, 2016 21:52
Show Gist options
  • Save svanellewee/e4e5c3aca92cb82f2b864493f6cb9f4f to your computer and use it in GitHub Desktop.
Save svanellewee/e4e5c3aca92cb82f2b864493f6cb9f4f to your computer and use it in GitHub Desktop.
orgmode is handled by github!!!

Orgmode stuff

Outliner bla

Somet text!

  • some txt
  • yet more with M-enter
  • M-up moves around

Markup

BOLD , italic , verbatim , striketrhough

  • buttels
  • list
  • items

C-c C-l

GOOOOGLE

This works ! init.el

helloworld
12312222
22ss

SOurce code

C-c ’ doesnt work so welll :-/

print("helLo {}".format("world"))

C-c C-c works

(format "hello %s" "world")
a1
b2
c3
# Return row specified by val.
# In non-session mode, use return to return results.
return(data[val])
import matplotlib, numpy
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(4,2))
x=numpy.linspace(-15,15)
plt.plot(numpy.sin(x)/x)
fig.tight_layout()
plt.savefig('images/python-matplot-fig.png')
return 'images/python-matplot-fig.png' # return filename to org-mode

try “<s tab” !

Latex

  • α →
  • $O(n log n)$

\begin{align*} 3 * 4 &= 6+ 1
&= 7 \end{align*}

SHOW TABLES;

You may need to add: (org-babel-do-load-languages ‘org-babel-load-languages ‘((sql . t))) ((sql . t))

Tables_in_teststuff
BirdRegions
Birds
Region
albums
contacts
ebooks
exchangerates
feedsin_runs
notes
product_type
product_warrantys
products
products_bad_compare
products_fix
suppliers
test_key_bla
test_tom_yorke
testdatefunctions
testkey
tracks
warranty_months

NO @(#*# WAY THAT’s AMAZING! That was from the db driver^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment