This AoC2019 gist has commit messages :C
git clone ssh://git@gist.github.com/94066e553794458704ef1b2ba4d6e30a
git log
TOC:
This file contains 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
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
ipython = "*" | |
pylint = "*" | |
[packages] |
This file contains 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
from math import * | |
from math import pi as π | |
from pprint import pprint | |
games = [ | |
("PK", "SF"), ("RT", "XT"), ("ACE", "BS"), ("SRM", "GB"), #day 1 | |
("SysX", "XT"), ("PK", "RT"), ("SF", "GB"), ("SRM", "BS"), #day 2 | |
("SysX", "GB"), ("RT", "BS"), ("SF", "SRM"), ("XT", "ACE"), #day 3 | |
("SysX", "PK"), ("RT", "SF"), ("XT", "BS"), ("GB", "SRM"), #day 4 | |
("SysX", "RT"), ("PK", "ACE"), ("XT", "SF"), ("BS", "GB"), #day 5 |
This file contains 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
function cs -a term | |
csearch -n -- $term \ | |
| env GREP_COLORS='mt=02;35' grep --color=always -P '^[^:]+:[^:]+:' \ | |
# http://unix.stackexchange.com/a/305262/2179 | |
| env grep --color=always -P -- $term \ | |
| less -RFX | |
end |
This file contains 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
import re | |
import unittest | |
def IsValidXenCPUID(cpuid_mask): | |
# host(,[0-9a-z]+=([a-z]|[0-9])+)* | |
libxl_syntax = re.compile(r""" | |
host #required header | |
( #plus many of the following: | |
, #comma separator | |
[0-9a-z]+ #field name |
This file contains 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 is terribly written but still it should give you a broad idea of whether or not a gun is better than the other or not. | |
This keeps track of: | |
* Damage | |
* Fire rate | |
* Reload time | |
* Magazine | |
* Elemental damage | |
* Damage type (vs flesh, shield, armor) |
This file contains 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
badChannels = ["gamehelper", "gamerspawn", "machinima", "vaivecorporation", "loquendoitalia", "patron500", "jon3pnt0"] | |
$(jQuery.grep($(".video-list-item, .result-item, .result-item-main-content, .sidebar-ads, .yt-tile-default"), | |
function(item, number){ | |
//filter regular videos | |
username = $(item).find(".yt-user-name").text().toLowerCase(); | |
console.debug(username) | |
if(badChannels.indexOf(username) != -1) return true; | |
//perhaps it's an ad. |
This file contains 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
<mockup version="1.0" skin="sketch" measuredW="962" measuredH="562" mockupW="902" mockupH="542"> | |
<controls> | |
<control controlID="36" controlTypeID="com.balsamiq.mockups::Canvas" x="60" y="20" w="700" h="542" measuredW="100" measuredH="70" zOrder="0" locked="false" isInGroup="-1"/> | |
<control controlID="37" controlTypeID="com.balsamiq.mockups::Title" x="75" y="35" w="-1" h="-1" measuredW="180" measuredH="41" zOrder="1" locked="false" isInGroup="-1"> | |
<controlProperties> | |
<size>32</size> | |
<text>The%20Cat%20Hat</text> | |
</controlProperties> | |
</control> | |
<control controlID="38" controlTypeID="com.balsamiq.mockups::Title" x="75" y="76" w="-1" h="-1" measuredW="119" measuredH="24" zOrder="2" locked="false" isInGroup="-1"> |
This file contains 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
@staruml | |
version | |
@enduml | |
@startuml weapons2.svg | |
title Last updated January 17th 2012. | |
hide empty members |
NewerOlder