Skip to content

Instantly share code, notes, and snippets.

View soto97's full-sized avatar

Alejandro Soto soto97

View GitHub Profile
@matthewpizza
matthewpizza / install-composer.sh
Created February 13, 2014 03:55
Install Composer on Webfaction
cd $HOME
ln -s `which php54` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php54
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
@aflaxman
aflaxman / 2014_02_08a_javascript_hack_to_paste_into_ipynb.ipynb
Created February 8, 2014 16:28
Pasting Images into in IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thriveth
thriveth / CBcolors.py
Created January 22, 2014 14:52
A color blind/friendly color cycle for Matplotlib line plots. Might want to shuffle it around a bit more,but already not it gives kinda good contrasts between subsequent colors, and shows reasonably well in colorblind filters (though not in pure monochrome).
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']
@pascal-schetelat
pascal-schetelat / slope.py
Created November 30, 2013 23:42
Slope plot, Tufte style
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 30 22:32:04 2013
@author: pascal Schetelat
"""
import matplotlib.pyplot as plt
@jiaaro
jiaaro / retirement calc.md
Last active December 3, 2022 18:51
A Simple, Easy-to-edit Retirement Saving Calculator (in python)

Retirement Calculator

  • ages are in years
  • contribution, and savings are in dollars
  • avg_annual_return is a ratio, so 1.07 is a 7% annual return

let's say I'm 25 years old, I am going to contribute $2000/yr in bonds (~5% return), and I've already invested $5700 in bonds

@fractaledmind
fractaledmind / Export all Skim Notes to Evernote with Hyperlinks
Created September 7, 2013 23:15
This script will (as the title suggests) export all of you Skim notes directly to Evernote with hyperlinks. It relies on the GENERATE TOP 3 NOTES WITH SYSTEM URL script that will put 3 notes at the top of the PDF with linking information. When launched, the script will ask you if the current PDF is a Primary Source or a Secondary Source. Your ch…
@derickfay
derickfay / Place Markdown Link of BibDesk Item on Clipboard
Last active October 17, 2021 19:56 — forked from fractaledmind/Insert Markdown Link of BibDesk Item into TextMate
Copies to clipboard to remove dependency on a particular editor. Displays Cite Key as well as Title in selection dialog.
@Raefael
Raefael / deleting_merging_partitions
Created June 12, 2013 07:34
Deleting and merging a partition with diskutil from the command line OS X
/**
* diskutil list shows you the partitions currently connected to your unit
**/
imac:~ user$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 987.2 GB disk0s2
@mbostock
mbostock / .block
Last active January 30, 2024 13:24
Calendar View
license: gpl-3.0
height: 2910
border: no
redirect: https://observablehq.com/@d3/d3-calendar-view
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2024 06:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname