Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
private void ValidateKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) | |
{ | |
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && e.KeyChar != '.') | |
{ | |
e.Handled = true; | |
} | |
// Only allow one decimal point | |
if (e.KeyChar == '.' && (sender as StxTextBox).Text.IndexOf('.') > -1) | |
{ |
# http://dingleberry.me/2008/10/play-rar-files-with-vlc-mplayer/ | |
unrar p -inul $1 | mplayer -cache 64000 -cache-min 50 - |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
highlight ColorColumn ctermbg=235 guibg=#2c2d27 | |
" In Vim >= 7.3, also highlight columns 100+ | |
if exists('+colorcolumn') | |
" (I picked 120-320 because you have to provide an upper bound and 320 just | |
" covers a 1080p GVim window in Ubuntu Mono 11 font.) | |
let &colorcolumn="80,".join(range(100,320),",") | |
else | |
" fallback for Vim < v7.3 | |
autocmd BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) |
I hereby claim:
To claim this, I am signing this object:
using System; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Newtonsoft.Json.Linq; | |
namespace Controllers | |
{ |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |