Skip to content

Instantly share code, notes, and snippets.

View himito's full-sized avatar

Jaime Arias Almeida himito

View GitHub Profile
@himito
himito / tmux-cheatsheet.markdown
Created May 12, 2016 07:20 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
\documentclass[class=article,border=0pt]{standalone}
%------------------------------------------------------------------------------
% COLORS
%------------------------------------------------------------------------------
\usepackage{xcolor}
%------------------------------------------------------------------------------
% TIKZ
%------------------------------------------------------------------------------
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i}\n"
done
@himito
himito / keybase.md
Created October 24, 2016 06:50
keybase proof

Keybase proof

I hereby claim:

  • I am himito on github.
  • I am himito (https://keybase.io/himito) on keybase.
  • I have a public key whose fingerprint is 8C42 A211 D6B2 9DF5 19CD 6D20 1F2F CABB 75FD 2C8E

To claim this, I am signing this object:

@himito
himito / beautiful_idiomatic_python.md
Created January 8, 2017 13:48 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@himito
himito / listing-solarized.tex
Created September 12, 2017 08:15
Solarized Listings
\usepackage{fancyvrb}
\usepackage{listings}
\renewcommand{\lstlistingname}{\textsc{Program}}
\definecolor{keywordscolor1}{RGB}{72, 91, 98}
\definecolor{keywordscolor2}{RGB}{133, 153, 3}
\definecolor{keywordscolor3}{RGB}{181, 137, 3}
\definecolor{identifiercolor}{RGB}{37, 116, 206}
\definecolor{commentscolor}{RGB}{130, 144, 144}
\definecolor{attributescolor}{RGB}{203, 75, 22}
@himito
himito / brightness.sh
Created November 20, 2017 09:42
Control Brightness
xrandr --output $(xrandr -q | awk '/ connected / {print $1}') --brightness 0.8
@himito
himito / fetch_all.sh
Last active August 18, 2020 11:48
Script to pull all the git repository in a folder
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
printf "\nPulling in latest changes for all repositories...\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" -type d); do
@himito
himito / component.vue
Last active August 19, 2020 10:12
v-model
<template>
<input type="number" ref="monthPicker" :value="value" @input="updateDate()" />
</template>
<script>
export default {
props: ['value'],
methods: {
updateDate () {
@himito
himito / latex.md
Last active August 17, 2021 16:26
LaTeX snippets

Highlight author with bibtex

\usepackage[
  backend=biber,
  bibencoding=utf8,
  maxbibnames=99,
  style=alphabetic,
  sorting=nty
]{biblatex}