This file contains hidden or 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 main | |
func InspectSlice(slice []string) { | |
// Capture the address to the slice structure | |
address := unsafe.Pointer(&slice) | |
// Capture the address where the length and cap size is stored | |
lenAddr := uintptr(address) + uintptr(8) | |
capAddr := uintptr(address) + uintptr(16) |
This file contains hidden or 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
" Try to determine type of file from name and contents | |
filetype plugin indent on | |
" Enable syntax highligting | |
syntax on | |
" Show partial commands on last line | |
set showcmd | |
" Highlight searches |
This file contains hidden or 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 "vectordoublevalidator.h" | |
// VectorDoubleValidator Constructor | |
VectorDoubleValidator::VectorDoubleValidator ( double bottom, double top, int decimals, | |
QObject* parent = 0 ) | |
: QDoubleValidator ( bottom, top, decimals, parent ) { | |
} | |
// Custom validate function to allow comma seperated values |
This file contains hidden or 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
Show hidden characters
[ | |
{ "keys": ["ctrl+q"], "command": "close_file" }, | |
{ "keys": ["ctrl+k", "ctrl+0"], "command": "fold_all" }, | |
] |
This file contains hidden or 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
Options +ExecCGI | |
AddHandler cgi-script .py | |
DirectoryIndex code.py/ | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/static/favicon.ico$ | |
RewriteCond %{REQUEST_URI} !^/static/(.*)$ | |
RewriteCond %{REQUEST_URI} !^(/.*)+code.py/ | |
RewriteRule ^(.*)$ code.py/$1 [PT] |
NewerOlder