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
#!/usr/bin/python3 | |
# By Steve Hanov, 2011. Released to the public domain. | |
# Please see http://stevehanov.ca/blog/index.php?id=115 for the accompanying article. | |
# | |
# Based on Daciuk, Jan, et al. "Incremental construction of minimal acyclic finite-state automata." | |
# Computational linguistics 26.1 (2000): 3-16. | |
# | |
# Updated 2014 to use DAWG as a mapping; see | |
# Kowaltowski, T.; CL. Lucchesi (1993), "Applications of finite automata representing large vocabularies", | |
# Software-Practice and Experience 1993 |
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
1: Get the audio output device you'll record off: | |
pacmd list-sources | awk '/name:.+\.monitor/' | |
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor> | |
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor> | |
2: Get the x windows id (linux) of the window you'll capture | |
xwininfo -name "Nestopia" | |
xwininfo: Window id: 0x3a00003 "Nestopia" | |
... |
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
" THIS rc is for VsVim under Visual Studio on Windows | |
set virtualedit=onemore | |
set selectmode= | |
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set backspace=indent,eol,start |
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
using Mono.Cecil; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml.Serialization; | |
namespace CecilTest |
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
// modifierKey used to check if cmd+click, shift+click, etc. | |
!function($, global){ | |
var $doc = $(document); | |
var keys; | |
global.modifierKey = false; | |
global.keys = keys = { | |
'UP': 38, | |
'DOWN': 40, |
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
vmap <C-c> "+yi | |
vmap <C-x> "+c | |
vmap <C-v> c<ESC>"+p | |
imap <C-v> <ESC>"+pa |
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
using System; | |
using System.Numerics; | |
namespace MathFun | |
{ | |
/// <summary> | |
/// Trig functions for Complex numbers | |
/// </summary> | |
/// <remarks> | |
/// main reference: Schaum's Outlines: Complex Variables ISBN-13: 978-0070602304 |
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
obj | |
bin | |
deploy | |
*.csproj.user | |
*.suo | |
*.cache | |
~$* | |
*~ | |
*ReSharper* | |
*.swp |
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
keycode 8 = BackSpace BackSpace | |
keycode 9 = Tab Tab | |
keycode 12 = Clear | |
keycode 13 = Enter | |
keycode 16 = Shift_L | |
keycode 17 = Control_L | |
keycode 18 = Alt_L | |
keycode 19 = Pause | |
keycode 20 = Caps_Lock | |
keycode 27 = Escape Escape |
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
Set-PSReadlineOption -BellStyle None | |
# Clone `https://github.com/dahlbyk/posh-git.git` to C:\Gits | |
Import-Module 'C:\Gits\posh-git\src\posh-git.psd1' | |
set-executionpolicy Unrestricted process | |
$baseDir = Split-Path -parent $MyInvocation.MyCommand.Definition | |
#. "$baseDir\hand.ps1" | |
# General actions | |
function edit ($file) { & "${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" $file } |