此文目標讀者需先自行學會
- 開 Github 帳號
- 會 fork 程式 repository
- 會在自己的電腦使用命令列
git
- 會 clone 自己的 repository
#!/bin/bash | |
# B2 key for `rclone sync`. Can upload/list/shadow delete but not real deletion. | |
# Adopted from https://github.com/sequentialread/password-manager#hosting-it-yourself | |
BACKBLAZE_KEY_ID="" | |
BACKBLAZE_SECRET_KEY="" | |
BUCKET_NAME="" | |
KEY_NAME="" |
function FindProxyForURL(url, host) { | |
if (host === 'cdn.apple-mapkit.com' && url.indexOf('mk') !== -1) { | |
return "PROXY 127.0.0.1:443"; | |
} | |
if (host === 'calypso.localhost') { | |
return 'PROXY 127.0.0.1:3000'; | |
} | |
return FindProxyForURL_Automattic(url, host); |
diff --git a/dom/html/HTMLMarqueeElement.cpp b/dom/html/HTMLMarqueeElement.cpp | |
--- a/dom/html/HTMLMarqueeElement.cpp | |
+++ b/dom/html/HTMLMarqueeElement.cpp | |
@@ -125,16 +125,52 @@ HTMLMarqueeElement::IsAttributeMapped(co | |
} | |
nsMapRuleToAttributesFunc | |
HTMLMarqueeElement::GetAttributeMappingFunction() const | |
{ | |
return &MapAttributesIntoRule; |
/////////////////////////// | |
nsAutoString value; | |
input->GetTextValue(value); | |
printf("****************************************************************************************\n"); | |
printf("%s\n", NS_ConvertUTF16toUTF8(value).get()); | |
printf("****************************************************************************************\n"); | |
printf("%s\n", NS_ConvertUTF16toUTF8(mSearchString).get()); | |
printf("****************************************************************************************\n"); | |
/////////////////////////// |
#!/bin/bash | |
sudo kextunload -b org.virtualbox.kext.VBoxUSB | |
sudo kextunload -b org.virtualbox.kext.VBoxNetFlt | |
sudo kextunload -b org.virtualbox.kext.VBoxNetAdp | |
sudo kextunload -b org.virtualbox.kext.VBoxDrv | |
sudo kextload /Library/Extensions/VBoxDrv.kext -r /Library/Extensions/ | |
sudo kextload /Library/Extensions/VBoxNetFlt.kext -r /Library/Extensions/ | |
sudo kextload /Library/Extensions/VBoxNetAdp.kext -r /Library/Extensions/ |
This is how I generate my dogfood build, daily-ish. I do so to ensure I have (almost) total control over what goes into my phone so I could pick up the changes anytime I wanted (and indentifying the version of Gaia/Gecko I am using).
This instruction is used for Geeksphone Peak and with zh-TW locale. Replace/remove instruction for your own phone.
File locations:
update.sh
should go to $B2G
(the place you clone B2G repo with git
).<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- Heiti Configure File --> | |
<fontconfig> | |
<match target="font"> | |
<test qual="any" name="family"> | |
<string>Heiti SC</string> | |
<string>黑體-簡</string> | |
<string>黒体-簡</string> | |
<string>Heiti-간체</string> |
<!DOCTYPE html> | |
<html manifest="manifest.appcache"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<!-- System --> | |
<script> | |
</script> | |
</head> |
/* Contact Manager for maintaining contact cache and access contact db. | |
* 1. Maintain used contacts in contactData object literal. | |
* 2. getContactData: Call the callback with contact data. | |
* Callback will be called twice if cached data turned out to be different than | |
* the data from db. | |
*/ | |
var ContactDataManager = { | |
contactData: {}, | |
getContactData: function cm_getContactData(options, callback) { | |
var isCacheable = (options.filterBy.indexOf('tel') !== -1 && |