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
diff --git a/Combat.lua b/Combat.lua | |
index d9df948..2cc3e32 100644 | |
--- a/Combat.lua | |
+++ b/Combat.lua | |
@@ -867,6 +867,7 @@ function DamageEnemy( victim, triggerArgs ) | |
end | |
end | |
+ triggerArgs.DamageAmount = triggerArgs.DamageAmount * 10 | |
if triggerArgs.DamageAmount == 0 then |
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
#!/bin/bash | |
_WINEARCH=win64 | |
_WINEPREFIX="$HOME/.wine" | |
_WINEDLLOVERRIDES="winemenubuilder.exe=d;mscoree;mshtml" | |
_WINEDEBUG=fixme-all | |
_WINEPATH="" | |
_WINEBIN=wine | |
CALL_WINETRICKS=false | |
CALL_CONSOLE=false | |
CALL_SHUTDOWN=false |
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
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use POSIX 'strftime'; | |
use File::Basename; | |
sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; | |
sub get_files_from_directory { | |
my $path = $_[0]; |
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
#!/usr/bin/env python | |
import random | |
import unittest | |
# 0 = Head, 1 = Tail | |
def start_flipping_coin(target, saved): | |
return flip_until(target, 0, 0, saved) |
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
#!/usr/bin/env python | |
import random | |
# 0 = Head, 1 = Tail | |
def start_flipping_coin(target, saved): | |
return flip_until(target, 0, 0, saved) |
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
#!/usr/bin/env python | |
# This is simulating Monty Hall Paradox | |
import random | |
def monty(switch): | |
# random shuffle | |
doors = [0, 0, 1] # one of the door contains the car | |
random.shuffle(doors) |
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
#!/usr/bin/env python | |
import random | |
# Frog 0 for female, 1 for male | |
def create_frog(): | |
return random.randint(0, 1) | |
def has_croak(pairs): # also male | |
return 1 in pairs |
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
/************* | |
Copyright (c) 2012, Allen Choong | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the |
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
;;; org-mode-extend --- Extra org-mode functions | |
;;; Commentary: | |
;;; Code: | |
(defun org-outline-to-checklist (start end) | |
"Convert outline to checklist from START to END." | |
(interactive "r") | |
(save-restriction | |
(narrow-to-region start end) | |
(goto-char (point-min)) |