I hereby claim:
- I am thushan on github.
- I am thushanfernando (https://keybase.io/thushanfernando) on keybase.
- I have a public key whose fingerprint is ABA1 8310 D88F F570 F873 657F 1E33 92B8 9BA2 CB78
To claim this, I am signing this object:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler({"http": "http://127.0.0.1:3128"})) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read()) |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// isIE === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// isIE === 7; // IE7 | |
// Thus, to detect IE: | |
// if (isIE) {} | |
// And to detect the version: | |
// isIE === 6 // IE6 | |
// isIE > 7 // IE8, IE9, IE10 ... |
# Credit http://stackoverflow.com/a/2514279 && https://gist.github.com/jasonrudolph/1810768 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci\t%cr\t%an" $branch | head -n 1` \\t$branch; done | sort -r | |
# See https://www.kernel.org/pub/software/scm/git/docs/git-show.html for other data |
public class Bootstrap | |
{ | |
public IDisposable Initialise() | |
{ | |
var jitc = new NitroGcCompiler(Options.AggresiveGc); | |
var runtime = new ServerRuntime(jitc, Gc.VaryByLoad | Gc.NoTrace); | |
// Configure Runtime & JitC | |
return new Disposable(() => | |
{ | |
runtime.Dispose(); |
int jhash(string value) | |
{ | |
int h = 8388617; | |
char[] values = value.ToCharArray(); | |
for(int i = 0; i< value.Length; i++) | |
h = ( (h << 1 | h >> 30) & 0x7fffffff ) ^ values[i]; | |
return h; | |
} |
let levenshtein word1 word2 = | |
let preprocess = fun (str : string) -> str.ToLower().ToCharArray() | |
let chars1, chars2 = preprocess word1, preprocess word2 | |
let m, n = chars1.Length, chars2.Length | |
let table : int[,] = Array2D.zeroCreate (m + 1) (n + 1) | |
for i in 0..m do | |
for j in 0..n do | |
match i, j with | |
| i, 0 -> table.[i, j] <- i | |
| 0, j -> table.[i, j] <- j |
use [G-NAF] | |
-- Clean existing | |
delete FROM dbo.ADDRESS_ALIAS | |
TRUNCATE TABLE dbo.ADDRESS_ALIAS | |
SELECT COUNT(*) FROM dbo.ADDRESS_ALIAS | |
GO | |
BULK | |
INSERT dbo.ADDRESS_ALIAS | |
FROM 'D:\G-NAF\FEB16_GNAF_PipeSeparatedValue_20160222170142\G-NAF\G-NAF FEBRUARY 2016\Standard\ACT_ADDRESS_ALIAS_psv.psv' | |
WITH |
I hereby claim:
To claim this, I am signing this object:
REM Credit: https://stackoverflow.com/a/25756858 | |
REM Save current directory which lets us come back to our working directory | |
pushd %~dp0 | |
net file 1>nul 2>nul && goto :run || powershell -ex unrestricted -Command "Start-Process -Verb RunAs -FilePath '%comspec%' -ArgumentList '/c %~fnx0 %*'" | |
goto :eof | |
:run | |
REM Run any elevated tasks here |
// latest version is now here: | |
// https://github.com/thushan/dotfiles/blob/main/windows/windows-terminal/settings.json | |