Skip to content

Instantly share code, notes, and snippets.

View mirbehroznoor's full-sized avatar

Mir Behroz Noor mirbehroznoor

View GitHub Profile
@drj42
drj42 / org-mode-reference-in.org
Created February 6, 2012 23:53
This is a cheat sheet for Emacs org-mode... in org-mode format!
@hoeltgman
hoeltgman / org-syntax-cheatsheet.org
Created October 3, 2012 06:32 — forked from wdkrnls/org-syntax-cheatsheet.org
Org-mode Syntax Cheat sheet

org-syntax-cheatsheet.org

@Superbil
Superbil / talk-org-mode.org
Last active February 12, 2023 07:37
[PyHUG] July: Use Python in Org-mode

[PyHUG] July: Use Python in Org-mode

About

@abo-abo
abo-abo / hyper.org
Created July 19, 2013 16:12
elisp/clojure/python basic operations comparison.

hyperpolyglot

elispclojurepython
generationnumber-sequencerangerange
vectorvector⁅⁆
make-vector make-list make-string
length[[id:ced27672-063f-4205-8add
@kuanyui
kuanyui / resize-frame.el
Last active January 25, 2024 05:33
resize-frame.el --- A minor mode to resize frames easily.
;;; resize-frame.el --- A minor mode to resize frames easily. -*- lexical-binding: t; -*-
;; Copyright (C) 2014 kuanyui
;; Author: kuanyui <[email protected]>
;; Keywords: frames, tools, convenience
;; License: WTFPL 1.0
;;; Commentary:
@welbornprod
welbornprod / Embedded Python in BASH
Created August 14, 2014 23:22
A little trick to embed python code in a BASH script.
#!/bin/bash
# Here are some embedded Python examples using Python3.
# They are put into functions for separation and clarity.
# Simple usage, only using python to print the date.
# This is not really a good example, because the `date`
# command works just as well.
function date_time {
@jburroni
jburroni / ProductSpace
Created January 31, 2015 22:38
Product Space and Argentina
{
"metadata": {
"name": "",
"signature": "sha256:c81db9b3da9f1e569785e363228b8b51d0b00b179b4637f15817ef495a5a5286"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@drorata
drorata / gist:b05bfd59c45eec0470f6
Last active May 9, 2022 14:12
Nice output of pandas.DataFrame in org-mode
import pandas as pd
import numpy as np
from tabulate import tabulate

df = pd.DataFrame(np.random.random((4,3)), columns=['A','B','C'])
print("foo")
return(tabulate(df, headers="keys", tablefmt="orgtbl"))
@rpmuller
rpmuller / parse_orgtable.py
Created November 19, 2015 20:22
Parse an orgmode table into a Pandas dataframe
def parse_orgtable(s):
"""Parse an org-table (input as a multiline string) into a Pandas data frame."""
# This didn't quite work, because spaces messed things up
#import cStringIO
#table = pd.read_table(cStringIO.StringIO(s),sep='|',skiprows=[1],skipinitialspace=True)
#table = table.drop(table.columns[[0,-1]],1)
# I suppose I could have simply run strip() on all of the resulting column names, since that was the problem
def parseline(l):
w = l.split('|')[1:-1]
return [wi.strip() for wi in w]
@kleinschmidt
kleinschmidt / reftex-markdown.el
Last active March 15, 2022 09:19
Insert markdown (pandoc-citeproc) formatted citations using RefTeX
;; reftex in markdown mode
;; if this isn't already set in your .emacs
(setq reftex-default-bibliography '("/path/to/library.bib"))
;; define markdown citation formats
(defvar markdown-cite-format)
(setq markdown-cite-format
'(
(?\C-m . "[@%l]")