I hereby claim:
- I am jdennes on github.
- I am jdennes (https://keybase.io/jdennes) on keybase.
- I have a public key whose fingerprint is 9886 E863 A016 9D16 D60D 5B27 0078 B621 0DD0 ABB1
To claim this, I am signing this object:
| <?php | |
| # 1. Ensure you have Slim installed and in your include path. | |
| # 2. Ensure you have createsend-php installed and in your include path. | |
| # 3. Set CREATESEND_CLIENT_ID, CREATESEND_CLIENT_SECRET, | |
| # and CREATESEND_REDIRECT_URI environment variables for | |
| # your registered OAuth application. | |
| require 'createsend/csrest_general.php'; | |
| require 'Slim/Slim.php'; | |
| \Slim\Slim::registerAutoloader(); |
| // Ensure you set the CREATESEND_CLIENT_ID, CREATESEND_CLIENT_SECRET, | |
| // and CREATESEND_REDIRECT_URI environment variables for your registered | |
| // OAuth application. | |
| import static spark.Spark.*; | |
| import spark.*; | |
| import com.createsend.General; | |
| import com.createsend.models.clients.ClientBasics; | |
| import com.createsend.models.OAuthTokenDetails; | |
| import com.createsend.util.AuthenticationDetails; |
| curl -G https://api.github.com/search/repositories \ | |
| --data-urlencode "q=stars:>1000" \ | |
| --data-urlencode "sort=stars" \ | |
| --data-urlencode "order=desc" \ | |
| -H "Accept: application/vnd.github.preview" |
| › curl -Is https://api.github.com/repos/rails/rails/issues | grep Link | |
| Link: <https://api.github.com/repositories/8514/issues?page=2>; rel="next", <https://api.github.com/repositories/8514/issues?page=26>; rel="last" | |
| Access-Control-Expose-Headers: ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes |
| source "https://rubygems.org" | |
| gem "octokit" |
I hereby claim:
To claim this, I am signing this object:
A request to http://www.buienalarm.nl/location/rotterdam produces a chart that shows the projected rainfall for the next two hours in Rotterdam:
That page includes the following JavaScript that represents the data used to build the chart:
<script type="text/javascript">| $ script/scrape enschede | |
| ===> Scraping Buienalarm.nl... | |
| Projected rainfall for the next two hours in enschede: | |
| 18:40 - 0.05mm/hour (light) | |
| 18:45 - 0.05mm/hour (light) | |
| 18:50 - 0.09mm/hour (light) | |
| 18:55 - 0.11mm/hour (light) | |
| 19:00 - 0.13mm/hour (light) |
| #!/bin/bash | |
| # Export USERNAME, PASSWORD, and REPORT_URL | |
| # REPORT_URL should look something like https://my.ghe/stafftools/reports/all_users.csv | |
| # See: https://help.github.com/enterprise/admin/articles/site-admin-dashboard/#reports | |
| set -e | |
| for i in $(seq 1 5); do | |
| echo "Trying to get report..." | |
| result=$(curl -s -L -u $USERNAME:$PASSWORD $REPORT_URL) |