This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <variant> | |
#include <utility> | |
#include <type_traits> | |
#include <array> | |
#include <tuple> | |
#include <functional> | |
#include <optional> | |
namespace visit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am bogado on github. | |
* I am bogado (https://keybase.io/bogado) on keybase. | |
* I have a public key ASATBvPIsXPwaTttxew7TqmI5sego2cw4xtbjrIwGzjI8go | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a reference if it dosen't exist yet | |
function __ensure_create_backup_branch() | |
{ | |
branch_name=$1 | |
reason=$2 | |
if [[ "$reason" != "" ]]; then | |
reason_flag="-m" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $1; shift | |
for i in "$@"; do | |
tmux split "cd \"$i\"; $SHELL" | |
tmux select-layout tiled | |
done | |
tmux setw syn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <stdexcept> | |
#define _XOPEN_SOURCE | |
#include <unistd.h> | |
#include <termios.h> | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Search, using a regexp, for a text within the fold to set the fold text based on the match (in this case it folds divs on a html and uses the class and the first heading inside the div). --> | |
<!-- Procura, usando um regular expression, por um texto dentro do fold para setar o fold text baseado no resultado encontrado (neste caso ele está fazendos folds nos divs e usando a classe do div e o primeiro heading dentro do div --> | |
<!-- | fold marks | | folddashes|Substitute| Joins all the lines in the fold | Regular expression |Final text | | line count | --> | |
<!-- vim600:set fdm=marker fmr=<div,</div fdt=v\:folddashes.substitute(join(getline(v\:foldstart,v\:foldend),''),'.\\{-}<div\ class="\\(.\\{-}\\)".\\{-}<h\\d>\\(.\\{-}\\)<\/h\\d>.*','---\\1--\\2','')."\ [".string(v\:foldend-v\:foldstart+1)."\ lines]": --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
names: ["site search"], | |
icon: "http://www.google.com/favicon.ico", | |
description: "Search, using google, on the current site only.", | |
author: {name: "Victor Bogado", email: "victor@bogado.net"}, | |
license: "GPL", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
pblock.innerHTML = "Search <b>" + args.object.html + "</b> on " + CmdUtils.getDocument().location.host + "."; | |
}, |