Skip to content

Instantly share code, notes, and snippets.

@thirdy
thirdy / free-software-notes.txt
Last active February 24, 2017 02:03
My notes on my brown bag talk about Free Software
Buying a product and the right to know about it
* Pencil - lead
* A pet Dog
* Siopao
* Painting
* House
* Book
Copyright
* a legal right created by the law of a country that grants the creator of an original work exclusive rights for its use and distribution
@thirdy
thirdy / SocialistStarterPack.md
Last active May 18, 2017 20:29
Socialist Starter Pack
public static final int VC_ESCAPE = 1;
public static final int VC_F1 = 59;
public static final int VC_F2 = 60;
public static final int VC_F3 = 61;
public static final int VC_F4 = 62;
public static final int VC_F5 = 63;
public static final int VC_F6 = 64;
public static final int VC_F7 = 65;
public static final int VC_F8 = 66;
public static final int VC_F9 = 67;
@thirdy
thirdy / strx.ahk
Created September 20, 2016 00:39
StrX AHK Function by SKAN
; Cleanup StrX function and Google Example from https://autohotkey.com/board/topic/47368-strx-auto-parser-for-xml-html
; By SKAN
;1 ) H = HayStack. The "Source Text"
;2 ) BS = BeginStr. Pass a String that will result at the left extreme of Resultant String
;3 ) BO = BeginOffset.
; Number of Characters to omit from the left extreme of "Source Text" while searching for BeginStr
; Pass a 0 to search in reverse ( from right-to-left ) in "Source Text"
; If you intend to call StrX() from a Loop, pass the same variable used as 8th Parameter, which will simplify the parsing process.
;4 ) BT = BeginTrim.
The Atlas of Worlds:
The Atlas of Worlds lets you track your progression through Path of Exile's map endgame. You can also use it to upgrade maps and add mods to the Atlas. It indicates which maps are connected to each other.
The map drop rules have been changed so that connected maps and maps you've previously completed can drop from the area you're playing. As you progress towards the center of the Atlas from the four corners, the tier of maps increases.
There are four tier 16 maps that contain the Guardians of the Void. As you defeat them, you'll earn fragments of a key that allows you to challenge the Shaper himself.
As you complete more types of maps, you unlock a cumulative map tier bonus that is displayed on the Atlas.
You can upgrade white or yellow maps by five tiers using a Shaper's Orb, which can be earned by completing bonus objectives on specific maps.
You can add temporary mods to the Atlas itself using Cartographer's Sextants.
Your progress, upgrades and mods on the Atlas of Worlds are shared b
/**
* Wrap a Supplier in a try-catch, if an exception of class exceptionClass is caught, an empty Optional is returned.
*/
public static <T> Optional<T> expect(Supplier<T> supplier, Class<? extends Exception> exceptionClass) {
try {
return Optional.ofNullable(supplier.get());
}
catch (Exception ex) {
if (exceptionClass.isInstance(ex)) {
return Optional.empty();
@thirdy
thirdy / status.sh
Created June 10, 2016 06:00
Bash script for running multiple git status on multiple directories
#!/bin/bash
for REPO in */; do (cd "$REPO"; echo "status ----------------------------------------------------------------------------> " ${REPO}; git status); done;
@thirdy
thirdy / pull.sh
Created June 10, 2016 06:00
Bash script for running multiple git pull on multiple directories
#!/bin/bash
for REPO in */; do (cd "$REPO"; echo "pull ----------------------------------------------------------------------------> " ${REPO}; git pull); done;
<head>
<title>a streaming stash tab test</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.6/socket.io.js"></script>
<script src="https://cdn.rawgit.com/broofa/node-uuid/master/uuid.js"></script>
<script>
var pwxid = uuid.v4();
var socket = io.connect('http://rtstashapi.exiletools.com', {query: 'pwxid=' + pwxid});
thirdy 18:15
writing a serious drama on reddit
zocke1r 18:16
uh
Moksu 18:16
:O
thirdy 18:35