Skip to content

Instantly share code, notes, and snippets.

View mrwonderfulness's full-sized avatar

Mister Wonderfulness mrwonderfulness

  • Wonderfulness Inc.
  • Antarctica
View GitHub Profile
@mrwonderfulness
mrwonderfulness / list.md
Created October 31, 2020 09:19 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@pratiknabriya
pratiknabriya / MA_crossover_strategy_script.py
Created October 9, 2020 15:46
Generating trade signals using moving average(SMA/EMA) crossover strategy.
# import necessary libraries
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import datetime
from tabulate import tabulate
import warnings
warnings.filterwarnings('ignore')
@tastycode
tastycode / sync_to_dropbox.sh
Created March 25, 2020 20:04
Sync MacOSX Catalina Voice Memos to Dropbox
echo 'set +e' > /tmp/script.sh && echo 'mkdir -p "$HOME/Dropbox/Voice Memos"' >> /tmp/script.sh && sqlite3 ~/Library/Application\ Support/com.apple.voicememos/Recordings/CloudRecordings.db "select 'cp -n \"' || zpath || '\" \"$HOME/Dropbox/Voice Memos/' || zcustomlabel || '.m4a\"; touch -t '||strftime('%Y%m%d%H%M', datetime(zdate + strftime('%s','2001-01-01'), 'unixepoch'))||' \"$HOME/Dropbox/Voice Memos/' || zcustomlabel || '.m4a\"' from zcloudrecording;" >> /tmp/script.sh; bash -v /tmp/script.sh
"""
Used for downloading data from QUANDL and other such API's
"""
import csv
import os
import threading
from datetime import datetime
from iexfinance.stocks import get_historical_data
@danidiaz
danidiaz / netrw.txt
Created October 7, 2016 20:57
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@n8henrie
n8henrie / gps.py
Created September 7, 2014 18:23
Pythonista script to get GPS coordinates and text them via Launch Center Pro
#! /usr/bin/env python
'''gps.py
A quick and dirty Pythonista script for texting your GPS location. Uses
Pythonista: http://n8h.me/1dntsEH
and
Launch Center Pro: http://n8h.me/1fcRfrn
Recommended LCP URL action:
pythonista://{{gps}}?action=run
'''
@komasaru
komasaru / .tmux.conf
Last active March 13, 2022 17:29
tmux config(setting) file.
# ==== Basic
# Default shell
set-option -g default-shell /bin/bash
set-option -g default-command /bin/bash
# Allow UTF-8
set-window-option -g utf8 on
# Disable ESC delay
set-option -s escape-time 0
# ==== Reload config (r)