This file contains 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
<?php | |
// Service account code from http://stackoverflow.com/questions/18258593/using-a-service-account-getaccesstoken-is-returning-null | |
// Analytics code from https://code.google.com/p/google-api-php-client/source/browse/trunk/examples/analytics/simple.php?r=474 | |
require_once 'google-api-php-client/src/Google_Client.php'; | |
require_once 'google-api-php-client/src/contrib/Google_AnalyticsService.php'; | |
// Set your client id, service account name (AKA "EMAIL ADDRESS"), and the path to your private key. | |
// For more information about obtaining these keys, visit: | |
// https://developers.google.com/console/help/#service_accounts |
This file contains 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 "Reminders" | |
set todo_accounts to every account | |
-- accounts have lists. loop thru accounts to get their lists. | |
repeat with i from 1 to length of todo_accounts | |
tell account i | |
set todo_lists to get every list | |
-- lists have reminders. loop thru lists to get their reminders | |
repeat with j from 1 to length of todo_lists | |
tell list j | |
set todos to (get reminders) |
This file contains 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
echo "FD & mnh | |
FD & minamhere | |
fd & MNH | |
Fd & MNH | |
fulld & mnh | |
fulld & minamhere | |
fulldecent & mnh | |
fulldecent & minamhere | |
fd MNH | |
fulld MNH |
This file contains 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
#!/usr/bin/perl | |
# usage: $0 00030050204050205040520370782340520508485019857294857049587 | |
use integer; | |
@A = split //, <>; | |
sub R { | |
return if grep { # if this solution is invalid, bail | |
($_ / 9 == $i / 9 # find pairs of boxes to compare |
NewerOlder