Skip to content

Instantly share code, notes, and snippets.

View tsaiid's full-sized avatar

I-Ta Tsai tsaiid

View GitHub Profile
diff --git a/chrome/content/pcman.xul b/chrome/content/pcman.xul
index 3ff4c9b..a6a5d18 100755
--- a/chrome/content/pcman.xul
+++ b/chrome/content/pcman.xul
@@ -50,11 +50,10 @@
}
function resize(){
- var win=document.getElementById('topwin');
- var canvas=document.getElementById("canvas");
; SmartWonder Extension
; Renumbering Selected Lines
; Group Control For SmartWonder
GroupAdd, SmartWonder, VGHKS-
GroupAdd, SmartWonder, vghks-
GroupAdd, SmartWonder, tedpc-
; WBGet()
; Access an IE object by WinTitle and Internet Explorer_Server Number
import xml.etree.ElementTree as ET
import urllib2
import re
import os
# remove current images
working_dir = os.path.dirname(os.path.realpath(__file__))
for root, dirs, files in os.walk(working_dir, topdown=False):
for file in files:
@tsaiid
tsaiid / RandRanges
Last active August 29, 2015 14:08
Rank a selected range by rand in Excel
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Function ExistInSelection(criteria) As Boolean
For Each a In Selection.Areas
If WorksheetFunction.CountIf(a, criteria) Then
ExistInSelection = True
Exit Function
End If
Next
ExistInSelection = False
diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py
index d0b0960..4c7eba0 100644
--- a/ext/toolchain/commands1.py
+++ b/ext/toolchain/commands1.py
@@ -451,16 +451,17 @@ class InternalCommands:
cmake_args += ' -DCMAKE_BUILD_TYPE=' + target.capitalize()
elif sys.platform == "darwin":
- macSdkMatch = re.match("(\d+)\.(\d+)", self.macSdk)
- if not macSdkMatch:
diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt
index d7f0ca2..752a173 100644
--- a/ext/CMakeLists.txt
+++ b/ext/CMakeLists.txt
@@ -4,7 +4,7 @@
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file COPYING that should have accompanied this file.
-#
+#
diff --git a/src/setup/win32/Include.wxi b/src/setup/win32/Include.wxi
index 91eda56..5f6b0bb 100644
--- a/src/setup/win32/Include.wxi
+++ b/src/setup/win32/Include.wxi
@@ -26,6 +26,6 @@
<?define UpgradeGuid="$(var.UpgradeGuid32)" ?>
<?endif?>
- <?define CRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC100_CRT_$(var.Platform).msm" ?>
+ <?define CRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC120_CRT_$(var.Platform).msm" ?>
@tsaiid
tsaiid / smartwonder-activate-current-image-window.ahk
Created February 11, 2015 05:44
Move mouse to SmartIris to activate current image, and then confirm the report (^k)
;;; Move mouse to SmartIris to activate current image, and then confirm the report (^k).
$^k::
MouseGetPos, xpos,ypos
MouseMove, 1919, 0
SetMouseDelay, 250
MouseMove, 1921, 0
SetMouseDelay, 0
MouseMove, %xpos%, %ypos%
Send ^k
return
@tsaiid
tsaiid / boshiamy_t.custom.yaml
Last active August 29, 2015 14:24
用注音反查嘸蝦米
patch:
schema/dependencies:
- bopomofo
reverse_lookup:
dictionary: terra_pinyin
prism: bopomofo
prefix: "`"
suffix: "'"
tips: 〔注音〕
preedit_format: