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
I am writing to you today to urge your vote to decline Betsy DeVos for the Secretary of the Department of Education. | |
Ms. DeVos is allegedly a long-time advocate for students; however, she has been instrumental in destroying Michigan’s "public educational system" (sic) by allowing ideologies with no sound scientific backing to guide her actions. She is grossly under-qualified for this position. | |
She believes in expanding private educational opportunities that fit her ideologies instead of supporting what's best for our childrens' education. Instead of helping to improve public school systems, a system available to all Americans regardless of economic status, she pushes "educational opportunities outside of the public school system" that are loosely vetted and are only available to those whose families can afford them. All children, regardless of their family’s background, should have the opportunity to succeed in the classroom and not be held back in favor of unscrupulous people making a buck. | |
Ms. DeVos |
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
// In our location manager's init: | |
_estBeaconManager = [[ESTBeaconManager alloc] init]; | |
_estBeaconManager.delegate = self; | |
ESTBeaconRegion *region = [[ESTBeaconRegion alloc] initWithProximityUUID:[[NSUUID alloc] initWithUUIDString:beaconUUID] identifier:@"com.delectable.beacon"]; | |
region.notifyEntryStateOnDisplay = YES; | |
[_estBeaconManager startMonitoringForRegion:region]; | |
// The delegate methods: |
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) start | |
{ | |
if(self.isCancelled) | |
{ | |
self.finished = YES; | |
return; | |
} | |
self.executing = YES; | |
__block UIBackgroundTaskIdentifier delayedTask = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^ |
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
require 'URI' | |
# string to be parsed | |
rawString = 'This is the http://sameurl.com and a http://sameurl.com and yet another http://sameurl.com. Regardless, here\'s https://google.com and how much the Amazon Fire (http://arstechnica.com/gadgets/2014/04/amazon-fire-tv-misses-the-same-marks-as-ouya-other-media-boxes/) sucks' | |
puts "-- ORIGINAL --\n#{rawString}" | |
# extract an array of URLs from rawString | |
urls = URI.extract(rawString) |
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
SAMPLE JSON | |
{ | |
"event":{ | |
"name":"Gregorian", | |
"description":null, | |
"pricing":"£ 129.90 - 129.90", | |
"free":null, | |
"starts_at":"2013-04-06T20:00:00+00:00", | |
"ends_at":null, | |
"all_day":false, |