2020年4月4日 星期六

android-studio Flutter 快捷鍵




Ctrl + Alt + L:自動縮排
Ctrl + Y : 刪除整行程式碼
Ctrl + D : 重製一行
Ctrl + W : 在class上按 選取class
Ctrl + Shift + / :自動加註解 /* */
Ctrl +  / :自動加註解 //

Ctrl + Q:觀看類別方法
Ctrl +Shift + I:觀看類別方法
Ctrl + B:觀看類別方法

Ctrl + O:自動產生 Override Function

Alt + insert:對當前 class 自動生成 setter methods
Alt + Enter : 在class上按 可換class 或選取一個class按 可以產生一個class把選趣來包起來

快速產生StatefulWidget 或 StatelessWidget class
輸入stless 
輸入stful  

2019年11月7日 星期四

從前端看世界-要學那一套?

前端的世界裡有三大派(框架)

Angular 角度的 (google開發)
React 反應 (facebook開發)
Vue 視圖 (待在Angular 工作的大陸工程師:尤雨溪開發)


那一派比較好用?要學那一套?
從技術面很難做出決定,很難只從單一幾個項做出決擇。
那怎麼選呢?直接看你住那來做選擇,住及工作在歐美地區學Angular 或React ,反之學Vue。
跟著世界的情勢走。






2019年6月27日 星期四

facebook 即時遊戲 本機端測試


即時遊戲 本機端測試需要二個東西
1.透過 npm安裝 http-server 套件


npm install -g http-server

2.SSL



下載openSSL
https://slproweb.com/products/Win32OpenSSL.html

我的是win7所以下載檔案
Win64 OpenSSL v1.1.0k

安裝完會在C:\OpenSSL-Win64\bin
openssl.exe

接下來在




cd path/to/my/game/
openssl genrsa 2048 > key.pem
openssl req -x509 -days 1000 -new -key key.pem -out cert.pem

 Country Name (2 letter code) [AU]:TW                                                   //國碼臺灣是 TW
 State or Province Name (full name) [Some-State]:Taiwan R.O.C                           //國名臺灣填 Taiwan
 Locality Name (eg, city) []:Taipei                                                     //地名
 Organization Name (eg, company) [Internet Widgits Pty Ltd]:FreeBSD Personal Reserach   //組織單位名稱
 Organizational Unit Name (eg, section) []:FreeBSD Personal Reserach                    //部門名稱
 Common Name (eg, YOUR name) []:www.weithenn.org                                        //憑證的名稱 (通常為伺服器 FQDN)
 Email Address []:weithenn@weithenn.org                                                 //申請單位的聯絡信箱
 Please enter the following 'extra' attributes
 to be sent with your certificate request
 A challenge password []: 按 Enter 直接跳過                                             //申請書的密碼
 An optional company name []: 按 Enter 直接跳過                                         //憑證代辦公司的名稱

http-server --ssl -c-1 -p 8080 -a 127.0.0.1


https://www.facebook.com/embed/instantgames/YOUR_GAME_ID/player?game_url=https://localhost:8080/index.html


FBInstant.getLocale()
//zh_TW

getLocale
getPlatform
getSDKVersion
getSupportedAPIs
getEntryPointData
player.getID
player.getName
player.getPhoto
context.getID
context.getType
context.isSizeBetween
logEvent
onPause
inventory.unlockItemAsync
matchPlayerAsync
initializeAsync
setLoadingProgress
setSessionData
startGameAsync
player.flushDataAsync
player.getDataAsync
player.setDataAsync
player.subscribeBotAsync
player.getConnectedPlayersAsync
player.getSignedPlayerInfoAsync
context.switchAsync
context.chooseAsync
context.createAsync
context.getPlayersAsync
shareAsync
switchGameAsync
quit
getEntryPointAsync
getLeaderboardAsync
checkCanPlayerMatchAsync
context.isPublicAsync
player.canSubscribeBotAsync
player.getStatsAsync
player.setStatsAsync
player.incrementStatsAsync
postSessionScore
referrals.getCountAsync
updateAsync

2014年6月4日 星期三

改變chrome 開發工具的樣式


Step1 先選擇一套你想安裝的樣式安裝
Flatland
Zero Dark Matrix
Dracula 

Step2在網址列上輸入
chrome://flags/#enable-devtools-experiments
啟用開發人員工具實驗性功能,選擇啟用並重開chrome

Step3打開開發工具裡的設定
Experiments
同意Allow custom UI themes
關畢開發工具再打開就改變了

在Edge Code 裡使用Brackets擴充

step1:打開設定檔config.json

 路徑在:C:\Program Files (x86)\Adobe\Adobe Edge Code CC\www

step2:加入以下code

//將以下code
"extension_registry": "https://s3.amazonaws.com/extend.brackets/registry.json",
"extension_url": "https://s3.amazonaws.com/extend.brackets/{0}/{0}-{1}.zip"


//加至底 "config": { "app_title": "Adobe Edge Code CC (Preview)", "app_name_about": "Adobe® Edge Code CC", "about_icon": "styles/images/code_app.svg", "enable_jslint": false, "how_to_use_url": "http://www.adobe.com/devnet/edge-code/articles/code-editing-with-edge-code.html", "forum_url": "http://adobe.com/go/edge_code_forum", "release_notes_url": "http://adobe.com/go/edgecode_releasenotes", "report_issue_url": "", "twitter_url": "https://twitter.com/edge_code", "troubleshoot_url": "http://forums.adobe.com/docs/DOC-3027", "twitter_name": "@edge_code", "contributors_url": "https://api.github.com/repos/adobe/brackets/contributors", "extension_wiki_url": "https://github.com/adobe/brackets/wiki/Brackets-Extensions", // "extension_registry": "https://s3.amazonaws.com/extend.brackets/registry.json", "extension_url": "https://s3.amazonaws.com/extend.brackets/{0}/{0}-{1}.zip" }

 step3:重新開啟 Edge Code 完成!!


在擴充裡會出現available的頁籤,就看您想裝那個嚕~~~happy coding!!!




資料來源

2010年8月19日 星期四

使用rotationX, rotationY, rotationY or z =0;圖文會有點糢糊

DisplayObject使用rotationX,rotationY,rotationY或z屬性後,即使把他設定為0,圖文會有點糢糊現像。
修正方法:
DisplayObject.transform.matrix = new Matrix( );

2010年7月20日 星期二

FDT 使用ANT建立progression html

ANT的檔案是XML格式,每個檔案都有個project,project裡有多個target就是你一系列想要執行的任務。
而建立html主要是復製一個template.html,並將內容做修改
//Build.XML 


//先把index.template.html檔案復製到專案資料夾裡的bin裡,重新命名為index.html
  

//將index.html檔案裡的${title}替換

 


//index.template.html
//這檔案裡在title裡加入${title}是給ANT替換用

FDT_ANT_progression4Demo.zip