Skip to content

Instantly share code, notes, and snippets.

View exnius's full-sized avatar

Exnius exnius

  • Protoarte
  • Colombia
View GitHub Profile
/*
#####################
GoToTilla v0.21 by budRich
http://www.autohotkey.com/board/topic/95536-gototilla-a-combination-of-goto-and-tillagoto/
A combination of: GoTo by Avi Aryan
http://www.autohotkey.com/board/topic/95009-goto-hotkeys-hotstrings-functions-and-labels-in-any-editor/
and TillaGoto by TheGood
http://www.autohotkey.com/forum/viewtopic.php?t=41575
TheGood was inspired by Rajats Active GoTo
http://www.autohotkey.com/board/topic/10936-active-goto-v4/
#SingleInstance,Force
IniRead,access_token,settings.ini,access,token,0
if !access_token{
InputBox,access_token,Please enter your access token from Github,Without an access token this will not work.
if (ErrorLevel||access_token="")
ExitApp
IniWrite,%access_token%,settings.ini,access,token
}
Gui,+hwndmain
Gui,Add,Edit,w600 h500 WantTab
@exnius
exnius / A-Pen-by-Exnius.markdown
Created October 11, 2013 08:25
A Pen by Exnius.
@exnius
exnius / Default (Windows).sublime-keymap
Created October 17, 2013 04:26
Keybindings para Sublime Text 2 si se usa un teclado en español de latinoamérica.
[
{ "keys": ["ctrl+keypad_multiply"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
// { "keys": ["ctrl+alt+enter"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["ctrl+."], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
{ "keys": ["ctrl+shift+."], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+k", "f1"], "command": "reveal_in_side_bar" },
@exnius
exnius / Default (Windows).sublime-keymap
Created October 17, 2013 04:31
Keybindings compatibles con Prototools para un teclado en español de latinoamérica.
[
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
// { "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "new_file" },
{ "keys": ["ctrl+s"], "command": "save" },
{ "keys": ["ctrl+shift+s"], "command": "prompt_save_as" },
{ "keys": ["ctrl+f4"], "command": "close_file" },
@exnius
exnius / PutText.ahk
Created October 28, 2013 23:13
Escribir texto con AHK usando el portapapeles.
PutText(String, Select := 0)
{
IsClipEmpty := (Clipboard = "") ? 1 : 0
if !IsClipEmpty {
ClipboardBackup := ClipboardAll
While !(Clipboard = "") {
Clipboard =
Sleep, 10
}
}
@exnius
exnius / PutText.ahk
Created October 29, 2013 00:06
Probando un método alternativo para PutText()... #AHK
PutText(String, Select := 0)
{
Length := StrLen(String)
If (Length < 1)
{
return
}
else if (Length < 30) {
SendRaw, %String%
}
Clip(Text="", Reselect="") ; http://www.autohotkey.com/forum/viewtopic.php?p=467710 , modified August 2012
{
Static BackUpClip, Stored, LastClip
If (A_ThisLabel = A_ThisFunc) {
If (Clipboard == LastClip)
Clipboard := BackUpClip
BackUpClip := LastClip := Stored := ""
} Else {
If !Stored {
Stored := True
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#fde0dc</color>
<color name="md_red_100">#f9bdbb</color>
<color name="md_red_200">#f69988</color>