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
map = wl.Game().map | |
my_name = map.player_slots[1].name | |
my_tribe = map.player_slots[1].tribe | |
bar_goods = { | |
"raw_stone", "fish", "coal", "pick", "axe", | |
"trunk", "meat", "ironore", "felling_axe", "sharpaxe", | |
"blackwood", "water", "iron", "shovel", "broadaxe", | |
"grout", "wheat", "goldstone", "hammer", "bronzeaxe", | |
"thatchreed", "pittabread", "gold", "fishing_rod", "battleaxe", |
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 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 | |
OPs="{++,--,**,*,/,%,+,-,\<\<,\>\>,\&,^,\|}" | |
eval "echo -ne ${OPs}' '${OPs}'\n'" | | |
while read op1 op2; do | |
for eq in "6 $op1 6 $op2 6" "(6 $op1 6) $op2 6" "6 $op1 (6 $op2 6)"; do | |
read a b c d e <<<"$eq" | |
if [[ "$eq" == *\) ]] && [[ "$op1" == [/%] ]] && ((6 $op2 6 == 0)); then | |
printf -v ans "%19s∞" "" | |
else | |
ans=$((eq)) |
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/python | |
# | |
# Using new Terminal widget for a simple text viewer with ANSI escape code. | |
# ONLY read from pipe. This is just an sample code, not gonna to be developed | |
# further. | |
# | |
# Copyright (C) 2011 by Yu-Jie Lin | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
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
=== modified file 'configure.ac' | |
--- configure.ac 2011-08-05 16:47:02 +0000 | |
+++ configure.ac 2011-08-10 12:47:21 +0000 | |
@@ -521,101 +521,96 @@ | |
dnl Libpoppler checking | |
dnl ****************************** | |
+AC_ARG_ENABLE(poppler, | |
+ AC_HELP_STRING([--enable-poppler], [enable libpoppler for loading PDF file]), | |
+ [enable_poppler=$enableval], [enable_poppler=yes]) |
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 re | |
good = 'abc' | |
bad = 'ab\x00c' | |
#$rgx = '/^[\x00-\x20\x22\x2F\x3A\x3C\x3E\x5C]{1,'.strlen($tistr).'};/'; | |
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 77e63fcbcd035d4ac321a1914100170172e734bb Mon Sep 17 00:00:00 2001 | |
From: Yu-Jie Lin <[email protected]> | |
Date: Thu, 8 Sep 2011 18:21:59 +0800 | |
Subject: [PATCH] Add new pos option below_curosr (bcur) | |
--- | |
README.markdown | 3 ++- | |
twmnd/twmnd.pro | 2 +- | |
twmnd/widget.cpp | 25 ++++++++++++++++++++++++- | |
twmnd/widget.h | 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
Index: bin/repoman | |
=================================================================== | |
--- bin/repoman (revision 15844) | |
+++ bin/repoman (working copy) | |
@@ -17,10 +17,12 @@ | |
from commands import getstatusoutput as subprocess_getstatusoutput | |
import errno | |
import formatter | |
+import httplib | |
import logging |
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 url(ttp://fonts.googleapis.com/css?family=Ruda:900); | |
.JTVOnAir { | |
background-color: #000; | |
color: #800; | |
border: 0.125ex solid #222; | |
font-family: Ruda, sans-serif; | |
font-weight: 900; | |
line-height: 1em; | |
height: 1em; |
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 2012 Yu-Jie Lin | |
* MIT License */ | |
function GAWR(options) { | |
var self = this; | |
// ----- | |
this.report = function(entry) { | |
// Google Analytics | |
function _report() { | |
var _gaq = window._gaq || []; |
OlderNewer