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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Control_R to Control_R</name> | |
<appendix>(+ When you type Control_R only, send Escape)</appendix> | |
<identifier>remap.nc.controlRToEscape</identifier> | |
<autogen>__KeyOverlaidModifier__ KeyCode::CONTROL_R, KeyCode::CONTROL_R, KeyCode::ESCAPE</autogen> | |
</item> | |
<item> |
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 | |
# Forwarding utility for go. | |
# Puts any directory with a .go-root file into the GOPATH then launches go. | |
__gopath_for_dir__() { | |
test_goroot="$1/.go-root" | |
if [[ -f "$test_goroot" ]] ; then | |
echo "${2:+$2:}$1" | |
else |
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
package gork | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
) | |
var ( |
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
" auto-vim-comment.vim | |
" Noel Cower | |
" | |
" A quick plugin to insert a vim settings line comment as the last line of | |
" a buffer if none is found. | |
" | |
" Although it would be possible to insert the settings line comment at the top | |
" of the buffer, certain languages reserve the first line for special purposes | |
" (e.g., a hashbang). As such, this plugin does not attempt to do that. | |
" |
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 | |
# | |
# Forwarding utility for go. | |
# Puts any directory with a .go-root file into the GOPATH then launches go. | |
# | |
# Assumes you have a go binary already in your path. | |
# | |
# Depends on: | |
# https://github.com/nilium/gopath | |
# https://github.com/nilium/realpath |
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
#!/usr/bin/env bash | |
# General-purpose build script for wgo workspaces -- by default, builds all | |
# main root packages and their sub-packages. This sort of thing isn't | |
# applicable to all projects, especially those with more than just binary | |
# products. | |
if ! which wgo >/dev/null ; then | |
cat <<-EOF 1>&2 | |
wgo not found. Please install wgo and vendor before running make.bash: |
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
type glogWriter func(...interface{}) | |
func (fn glogWriter) Write(d []byte) (n int, err error) { | |
n = len(d) | |
if fn != nil { | |
fn(string(d)) | |
} | |
return n, err | |
} |
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
Rem | |
bbdoc: Invoke the method. If an exception is passed, its internal pointer must be Null. | |
returns: A mono object containing the return data, or Null if an exception is thrown. | |
End Rem | |
Method Invoke:TMonoObject(obj:TMonoObject, params:Byte Ptr[], exception:TMonoObject) | |
Return InvokeByPointer(obj._pointer, params, exception) | |
End Method | |
Rem |
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
' lua_test.bmx | |
Strict | |
Import Axe.Lua | |
' Available to lua | |
Function lua_KeyHit( lvm@ Ptr ) | |
' Get the number of arguments to the function |
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
IDENTIFIER_REGEX=/[a-zA-Z_]\w*/ | |
TYPENAME_REGEX=/(?ix) | |
# type shortcut | |
(?: | |
( [!#%] | @{1,2} | \$[zw]? ) | |
| | |
: \s* ([a-zA-Z_]\w*) | |
) | |
# pointer |