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 bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
# Can retrieve cloudflare Domain id and list zone's, because, lazy | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh |
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
OpenInOsiriX(AccNo) { | |
osirixUrl = http://__OSIRIX_IP__:__OSIRIX_PORT__ | |
serverName = __PACS_SERVER_NAME_SET_IN_OSIRIX__ | |
requestXml = | |
( | |
<?xml version="1.0"?> | |
<methodCall> | |
<methodName>Retrieve</methodName> | |
<params> | |
<param> |
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 from https://webapps.stackexchange.com/a/78996/129361 by user79865 */ | |
function onOpen() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getActiveSheet(); | |
var range = sheet.getRange("A3:A"); | |
var values = range.getValues(); | |
var day = 24*3600*1000; | |
var today = parseInt((new Date().setHours(0,0,0,0))/day); | |
var ssdate; | |
for (var i=0; i<values.length; i++) { |
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
javascript:(function()%7Bvar%20s=document.getElementById(%22tongwenlet_tw%22);if(s!=null)%7Bdocument.body.removeChild(s);%7Dvar%20s=document.createElement(%22script%22);s.language=%22javascript%22;s.type=%22text/javascript%22;s.src=%22https://cdn.rawgit.com/stargazer8tw/samples/fe8d4f5d89aebff0359b7f3ea52e141a1d92dcf5/tongwen_bookmarklet/js/bookmarklet_tw.js%22;s.id=%22tongwenlet_tw%22;document.body.appendChild(s);%20%7D)(); |
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 File::Copy; | |
use utf8; | |
use strict; | |
my $usage = "Usage: $0 from to."; | |
if (not defined $ARGV[0] or not defined $ARGV[1]) { | |
die "$usage\n"; | |
} |
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
result = Wombat.crawl do | |
base_url "https://www.rsroc.org.tw/" | |
path "News/" | |
posts 'xpath=//*[@id="page_right"]/table[2]/tr', :iterator do | |
title 'xpath=td[1]' | |
url 'xpath=td/a/@href' | |
date 'xpath=td[2]' | |
content 'xpath=td/a', :follow do |c| | |
c.html 'xpath=//*[@id="page_right"]/table[2]/tr[3]/td/div', :html |
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
Show hidden characters
{ | |
"color_scheme": "Packages/MyTheme/Material-Theme-Markdown.tmTheme", | |
//"font_face": "微軟正黑體", | |
//"font_face": "SourceHanCodeJP-ExtraLight", | |
"font_face": "Noto Sans Mono CJK TC Regular", | |
"font_size": 15, | |
"line_padding_bottom": 0, | |
"line_padding_top": 0, | |
"trim_trailing_white_space_on_save": 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>MarkdownEditing-Material</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
// Fix Material Theme with language-markdown | |
@font-face { | |
font-family: AdobeOpenSourceFont-Latin; | |
src: local(SourceCodePro-Light); | |
} | |
@font-face { | |
font-family: AdobeOpenSourceFont-Latin; | |
font-style: italic; | |
src: local(SourceCodePro-LightIt); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>MarkdownEditing</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |