View soduku
from copy import copy
from operator import itemgetter
def weigh(arr):
wx = [0,0,0,0,0,0,0,0,0]
wy = copy(wx)
wb = copy(wx)
for i in range(0,9):
for j in range(0,9):
wx[i] += 1 if arr[i][j] != '.' else 0
View pbascii.sublime-syntax.yaml
%YAML 1.2
---
name: pbascii
file_extensions: [pbascii]
scope: source.pbascii
contexts:
main:
- match: '"'
push: string
View .vimrc
set hls
syntax on
au BufNewFile,BufRead *.gradle setf groovy
au BufRead,BufNewFile *.md set syntax=markdown
autocmd Filetype gitcommit setlocal spell textwidth=72
set ts=4 et
highlight ExtraWhitespace ctermbg=darkyellow guibg=red
set guifont=Inconsolata:h18
match ExtraWhitespace /\t/
se nocompatible