Skip to content

Instantly share code, notes, and snippets.

{
"wingetApps": [
"Microsoft.WindowsTerminal",
"Microsoft.VisualStudioCode",
"Microsoft.PowerToys",
"Microsoft.Powershell",
"Microsoft.Edge",
"7zip.7zip",
"BraveSoftware.BraveBrowser",
"Discord.Discord",
@ymmyk
ymmyk / TalentBuilds
Last active August 21, 2020 01:34
Heroes of the Storm Talent Builds for Brawl
Kaelthas=Build1|01040101010108|02040202010404|""|86D5ADE0AD03FB
Varian=Build1|02040201020204|01020101020202|01010101020201|AA275A0AF3C560
Malfurion=Build1|01020201010201|02040202020208|""|8127E303AB0A91
Amazon=Build1|02020101010201|04020401040404|""|9060F0E64787D1
Lucio=Build1|01010401010104|""|""|F6500D17E7C2ED
Probius=Build1|01040101040101|""|""|66B18B01F8404F
Butcher=Build1|02010202020202|""|""|DF98C6D64368F0
Rexxar=Build1|01020402010202|""|""|BA923C83C84BDF
Auriel=Build1|01010101040201|01040101040101|""|C54BEEE3A385CF
Alarak=Build1|04020402020202|01010102020102|""|F985B31D7FABEB
Get-AppxPackage | Remove-AppPackage -Confirm:$false | Out-Null
Get-AppxPackage -AllUsers | Remove-AppPackage -Confirm:$false | Out-Null
@ymmyk
ymmyk / Package Control.sublime-settings
Last active April 17, 2019 21:51
sublime settings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"BetterFindBuffer",
"EasySettings",
"EditorConfig",
@ymmyk
ymmyk / gerrymandering.py
Last active November 8, 2018 04:28
Gerrymandering
import json
import math
from pprint import pprint
# https://www.realclearpolitics.com/elections/live_results/2018/house.json
filename = "raw.json"
state_template = {
'r_votes': 0,
'd_votes': 0,
#SingleInstance force
~+Space::
WinGetTitle, title, A
IfInString, title, PLAYERUNKNOWN
{
; SoundBeep
Send a
Sleep 2
Send {space}
@ymmyk
ymmyk / AdvancedWindowSnap.ahk
Created July 28, 2017 02:00 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Andrew Moore <andrew+github@awmoore.com>
* @version 1.0
*/
/**
* SnapActiveWindow resizes and moves (snaps) the active window to a given position.
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"ARM Assembly",
"BetterFindBuffer",
"Boxy Theme",
is_prime = (n) ->
limit = Math.floor(n / 2)
return true if n == 2
return false if n % 2 == 0
i = 3
while i < limit
if n % i == 0
return false
i += 2
true
@ymmyk
ymmyk / .bash_profile
Created December 2, 2013 20:18
Homebrew Service managment on Mac OS X
# Services Management
_services_folder="$HOME/.services"
_services_complete()
{
local cur=${COMP_WORDS[COMP_CWORD]}
local files=`ls $_services_folder`
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -W "load unload" -- $cur) )
else
COMPREPLY=( $(compgen -W "$files" -- $cur) )