Skip to content

Instantly share code, notes, and snippets.

Avatar

Jaime Arias Almeida himito

View GitHub Profile
View component.vue
<template>
<input type="number" ref="monthPicker" :value="value" @input="updateDate()" />
</template>
<script>
export default {
props: ['value'],
methods: {
updateDate () {
@himito
himito / fetch_all.sh
Last active Aug 18, 2020
Script to pull all the git repository in a folder
View fetch_all.sh
#!/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 / brightness.sh
Created Nov 20, 2017
Control Brightness
View brightness.sh
xrandr --output $(xrandr -q | awk '/ connected / {print $1}') --brightness 0.8
View listing-solarized.tex
\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 / beautiful_idiomatic_python.md
Created Jan 8, 2017 — 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!
View beautiful_idiomatic_python.md

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 / keybase.md
Created Oct 24, 2016
keybase proof
View keybase.md

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:

View colors.sh
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i}\n"
done
View Tikz2pdf.tex
\documentclass[class=article,border=0pt]{standalone}
%------------------------------------------------------------------------------
% COLORS
%------------------------------------------------------------------------------
\usepackage{xcolor}
%------------------------------------------------------------------------------
% TIKZ
%------------------------------------------------------------------------------
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
You can’t perform that action at this time.