Skip to content

Instantly share code, notes, and snippets.

View alganet's full-sized avatar

Alexandre Gomes Gaigalas alganet

  • São Paulo, SP, Brazil
View GitHub Profile
@alganet
alganet / jenkins.css
Created December 6, 2017 00:16
Jenkins Pipeline CSS
revision .description {
overflow: hidden;
}
div.pipeline-wrapper div.pipeline-info {
max-width: 116px;
}
@alganet
alganet / carreira_y_brasil.md
Created February 5, 2017 02:26
O Problema da Carreira em Y pra TI no Brasil

O Problema da Carreira em Y pra TI no Brasil

Não existe carreira em Y pra TI no Brasil.

Fim.

@alganet
alganet / calc.sh
Created January 8, 2017 03:44
Prefix-notation calculator in portable shell
calc ()
{
local cursor=0
local reference=0
local stack=0
local queue=''
local current=''
set -- $(echo ${@})
@alganet
alganet / .spacemacs.el
Last active July 11, 2016 14:19
My .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@alganet
alganet / br_abnt.kb
Last active August 29, 2015 14:26
NohBoard custom ABNT keymap (Basic)
KBVersion 3
width 838
height 267
nKeysDefined 72
category Basic
key 8 581 9 90 43 backspace backspace 0 1
key 9 9 53 67 43 tab tab 0 1
key 13 573 97 98 43 %return% %return% 0 0
key 20 9 97 79 43 caps caps 0 1
key 32 187 185 262 43 %0% %0% 0 0
@alganet
alganet / TypeFileOut.py
Last active August 29, 2015 14:26 — forked from stuartlangridge/TypeFileOut.py
Sublime Text 3 Python plugin to "type" the file that's currently being edited, character by character, for screencasts.
import sublime, sublime_plugin
BLOCKLEN = 1
class TypeFileOutCommand(sublime_plugin.TextCommand):
def nextchar(self):
if self.body:
totype = []
while 1:
try:
@alganet
alganet / README.md
Last active August 29, 2015 14:25
runup

[ ]:my:code

This is annotated!
@alganet
alganet / runup_builder.sh
Created May 30, 2015 04:11
runup_builder
runup_builder () {
(
tab=$(printf '\t')
line="[0-9][0-9]*${tab}"
stream_doc="/^0${tab}\(.*\)$/"
doc_line="/^${line}\(.*\)/"
doc_indent="/^${line}\(${tab}\| \)\(.*\)$/"
doc_fence="/^${line}\(~~~\|\`\`\`\)$/"
doc_direc="/^${line}\(\[@\]\:\)\([a-zA-Z0-9]*\)\s*(*\([^)]*\)\s*)*\s*$/"
cat <<-SED > foo & cat foo
@alganet
alganet / mdcode.sed
Last active July 23, 2016 07:52
WIP sed markdown parser. Prepare input with `sed '=' "/filepath.md" | sed "N;s/\n/$(printf '\t')/"`
:stream
$ { b endstream }
/^0 \(.*\)$/ { b _file }
h
s/^/<STREAM 0/;p
g
n
b stream
:_file
:on_stream
/^0 \(.*\)$/ { b on_document }
n
b on_stream
:on_document
s/^.*$/DOC1 &/;p
n
:on_document_back
/^[0-9][0-9]* \(.*\)$/ { b on_body }