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
{ | |
"entity_id": "vacuum.xiaomi_vacuum_cleaner", | |
"command": "app_zoned_clean", | |
"params": [[29500,21000,33200,25000,1]] | |
} |
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
{ | |
"entity_id": "vacuum.xiaomi_vacuum_cleaner", | |
"command": "app_zoned_clean", | |
"params": [ | |
[28500, 25500, 30200, 29000, 1], | |
[29500, 27800, 34000, 29000, 1], | |
[32500, 25500, 34000, 29000, 1], | |
[30000, 25500, 32500, 25800, 1] | |
] | |
} |
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
- platform: template | |
sensors: | |
rain_sensor: | |
friendly_name: "Rain Sensor" | |
value_template: >- | |
{% if is_state('sensor.pws_weather', 'Light Thunderstorms and Rain') %} | |
rain | |
{% elif is_state('sensor.pws_weather', 'Heavy Thunderstorms and Rain') %} | |
rain | |
{% elif is_state('sensor.pws_weather', 'Thunderstorms and Rain') %} |
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
{ | |
"devices": {}, | |
"rules": {}, | |
"gui": {}, | |
"settings": { | |
"log-level": 6, | |
"pid-file": "/var/run/pilight.pid", | |
"log-file": "/var/log/pilight.log", | |
"webserver-enable": 1, | |
"webserver-root": "/usr/local/share/pilight/", |
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
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "CC:22:3D:E3:CE:30", | |
"port": 51826, | |
"pin": "031-45-154" | |
}, | |
"platforms": [{ | |
"platform": "Orvibo" | |
}], |
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 sys | |
def main(): | |
mailchimp_infile = open(sys.argv[1],"r") | |
testflight_outfile = open(sys.argv[2],"w") | |
mailchimp_lines = mailchimp_infile.readlines() | |
new_data = "" | |
for index in range(1, len(mailchimp_lines)): | |
line = mailchimp_lines[index] |
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
- (void)routeNextRideFromStartLocation:(CLLocation*)startLocation toEndLocation:(CLLocation*)endLocation | |
{ | |
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"nextride://"]]){ | |
NSMutableString *requestPath = [NSMutableString stringWithString:@"nextride://nextride.sg/route?route_mode=both"]; | |
if (startLocation){ | |
[requestPath appendFormat:@"&route_start=%f,%f", startLocation.coordinate.latitude, startLocation.coordinate.longitude]; | |
} |
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
.... | |
[self.sliderPageControl setDelegate:self]; | |
[self.sliderPageControl setShowsHint:YES]; | |
.... | |
} | |
- (NSString *)sliderPageController:(id)controller hintTitleForPage:(NSInteger)page | |
{ | |
NSString *hintTitle = [[self.demoContent objectAtIndex:page] objectForKey:@"title"]; | |
return hintTitle; |
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
- (id)init | |
{ | |
... | |
[self.sliderPageControl addTarget:self action:@selector(onPageChanged:) forControlEvents:UIControlEventValueChanged]; | |
... | |
} | |
- (void)onPageChanged:(id)sender | |
{ | |
pageControlUsed = YES; |
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
{ | |
"url": "http:\/\/www.singpost.com.sg\/ra\/ra_article_detail_status_results.asp?ranumber=RRxxxxxxxxxSG&postingdate=11\/29\/2010&RTSOversea=False", | |
"origin": "KATONG DELIVERY BASE", | |
"status_date": "29-11-2010", | |
"dest_or_transit": "KATONG POST OFFICE", | |
"status": "DELIVERY ATTEMPTED, NOTIFICATION CARD ISSUED" | |
} |
NewerOlder