Skip to content

Instantly share code, notes, and snippets.

View mirbehroznoor's full-sized avatar

Mir Behroz Noor mirbehroznoor

View GitHub Profile
@mirbehroznoor
mirbehroznoor / ProductSpace
Created July 27, 2021 23:29 — forked from jburroni/ProductSpace
Product Space and Argentina
{
"metadata": {
"name": "",
"signature": "sha256:c81db9b3da9f1e569785e363228b8b51d0b00b179b4637f15817ef495a5a5286"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@mirbehroznoor
mirbehroznoor / org-syntax-cheatsheet.org
Created November 14, 2021 13:18 — forked from hoeltgman/org-syntax-cheatsheet.org
Org-mode Syntax Cheat sheet

org-syntax-cheatsheet.org

@mirbehroznoor
mirbehroznoor / Instructions.md
Created November 23, 2021 20:52 — forked from tmalsburg/Instructions.md
LaTeX template for articles in APA format

Compile this template by executing the following in a command shell:

  pdflatex test && biber test && pdflatex test && pdflatex test

This template uses biblatex and biber instead of good old BibTeX. The bibliography files (*.bib) can have the same format (although biblatex allows using some interesting extensions). However, the biblatex+biber combo is much more powerful than good-old BibTeX (e.g. support for multiple bibliographies in one document) and comes with great documentation.

Suggestions for improvements welcome.

@mirbehroznoor
mirbehroznoor / talk-org-mode.org
Created May 7, 2022 14:25 — forked from Superbil/talk-org-mode.org
[PyHUG] July: Use Python in Org-mode

[PyHUG] July: Use Python in Org-mode

About

@mirbehroznoor
mirbehroznoor / gist:8cc75bd1797e943b10aa76a8a427a86f
Created May 9, 2022 14:12 — forked from drorata/gist:b05bfd59c45eec0470f6
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"))
@mirbehroznoor
mirbehroznoor / Embedded Python in BASH
Created June 5, 2022 11:41 — forked from welbornprod/Embedded Python in BASH
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 {
@mirbehroznoor
mirbehroznoor / gist:d974946eb56f3426250903e8d94aef1d
Created March 19, 2023 11:04 — forked from ircykk/gist:c35591ab0384f1d35a592ffa08029618
Linux bluetoothctl auto pair and connect device
#!/bin/bash
coproc bluetoothctl
echo -e 'scan on\n' >&${COPROC[1]}
sleep 3
echo -e 'remove AA:AA:AA:AA:AA:AA\n' >&${COPROC[1]}
sleep 1
echo -e 'pair AA:AA:AA:AA:AA:AA\n' >&${COPROC[1]}
sleep 1