This file contains hidden or 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 ASUS.GPIO as GPIO | |
import time | |
LED_Pin = 11 | |
GPIO.setmode(GPIO.BOARD) #Physical Pin | |
GPIO.setup(LED_Pin, GPIO.OUT) | |
while True: | |
try: #Blink the LED |
This file contains hidden or 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
[ | |
{ | |
"Name": "Frank Wu", | |
"Nick_Name": "FrankWu", | |
"GitHub_ID": "FrankWu100", | |
"Email": "[email protected]", | |
"Avatar_Link": "https://www.gravatar.com/avatar/240e508e56aa36c32fcffadeff0a9ee3?r=pg", | |
"Gravatar_Email": "[email protected]", | |
"WebSite": "", | |
"role": "iOS Developer" |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 <NetworkExtension/NetworkExtension.h> | |
NSArray * networkInterfaces = [NEHotspotHelper supportedNetworkInterfaces]; | |
NSLog(@"Networks %@",networkInterfaces); | |
for(NEHotspotNetwork *hotspotNetwork in [NEHotspotHelper supportedNetworkInterfaces]) { | |
NSString *ssid = hotspotNetwork.SSID; | |
NSString *bssid = hotspotNetwork.BSSID; | |
BOOL secure = hotspotNetwork.secure; | |
BOOL autoJoined = hotspotNetwork.autoJoined; |
This file contains hidden or 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"?> | |
<root> | |
<item> | |
<name>-- Private Custom Setting --</name> | |
<item> | |
<name>Use PC Style Home/End #3</name> | |
<appendix>Change Home to Command+Up-Arrow</appendix> | |
<appendix>Change End to Command+Down-Arrow</appendix> | |
<identifier>private.HomeEnd_to_CommandUpDownArrow</identifier> | |
<autogen>__KeyToKey__ FROMKEYCODE_HOME, KeyCode::CURSOR_UP, ModifierFlag::COMMAND_L</autogen> |
This file contains hidden or 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
public string convertWindDirection(double directionAngle, int precision) | |
{ | |
if (precision != 4 && precision != 8 && precision != 16 && precision != 32) | |
return "\"precision\"準確度設定錯誤, 須為 4 or 8 or 16 or 32."; | |
string[] windDirectionName = new string[32] { "北", "北微東", "北北東", "東北微北", "東北", "東北微東", "東北東", "東微北", | |
"東", "東微南", "東南東", "東南微東", "東南", "東南微南", "南南東", "南微東", | |
"南", "南微西", "南南西", "西南微南", "西南", "西南微西", "西南西", "西微南", | |
"西", "西微北", "西北西", "西北微西", "西北", "西北微北", "北北西", "北微西" }; |
This file contains hidden or 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
using System; | |
class Untitled | |
{ | |
static void Main(string[] args) | |
{ | |
int _count = 15; | |
int countA = 0, countB= 0; | |
bool win = false; | |
bool needReInput = false; |
This file contains hidden or 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
tell application "System Events" | |
if button "結束" of window 1 of application process "FaceTime" exists then | |
click button "結束" of window 1 of application process "FaceTime" | |
end if | |
end tell | |
try | |
do shell script "killall FaceTime" | |
end try |
This file contains hidden or 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
tell application "System Events" | |
if button "結束" of window 1 of application process "FaceTime" exists then | |
click button "結束" of window 1 of application process "FaceTime" | |
end if | |
end tell | |
try | |
do shell script "killall FaceTime" | |
end try |
This file contains hidden or 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
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.3 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |