Skip to content

Instantly share code, notes, and snippets.

View geramirez's full-sized avatar
:octocat:

Gabriel Ramírez geramirez

:octocat:
  • Amsterdam
  • 22:19 (UTC +02:00)
View GitHub Profile
@pdamoc
pdamoc / App.elm
Last active June 9, 2021 15:50
Demo on how to split code across multiple pages.
module Main exposing (..)
import Html exposing (Html, div, hr, text)
import Html.App as App
import Navigation
-- APP IMPORTS
import FirstPage
@pastleo
pastleo / osx-for-hackers.sh
Created July 23, 2015 10:27
OSX system settings for Hackers
#!/bin/sh
# ===============================
# Hacker's OSX setting
# ===============================
# Modified by PastLeo from https://gist.github.com/brandonb927/3195465
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@fpinzn
fpinzn / git-stats.sh
Created March 14, 2013 01:17
Bash script to generate stats, in the shape of a csv file. Each line is composed by the one-line git log of each commit and the number of lines of code tracked. Extracted from https://www.destroyallsoftware.com/screencasts/catalog/statistics-over-git-repositories
#!/bin/bash
set -e
function main {
git rev-list --reverse HEAD |
while read rev; do
echo "'`commit_description`', '`number_of_lines`'"
done > stats.csv
}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 30, 2024 04:25
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"