Skip to content

Instantly share code, notes, and snippets.

@hotzeplotz
hotzeplotz / index.html
Last active October 13, 2015 12:14
Future of large cities - GDP
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Future of large cities - GDP</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' />
<link href='style.css' rel='stylesheet' />
</head>
@hotzeplotz
hotzeplotz / cities.json
Last active August 29, 2015 14:08
Future of large cities - t3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hotzeplotz
hotzeplotz / index.html
Last active August 29, 2015 14:08
Future of large cities d3+leaflet
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Future of large cities</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
@hotzeplotz
hotzeplotz / index.html
Last active August 29, 2015 14:08
Future of large cities
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Loading markers from CSV</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet-dvf/0.2/leaflet-dvf.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet-dvf/0.2/leaflet-dvf.markers.js"></script>
@hotzeplotz
hotzeplotz / secure-logged-in-cookie-override.php
Created October 11, 2014 22:18
Secure Logged In Cookie override
### Keybase proof
I hereby claim:
* I am hotzeplotz on github.
* I am hotzeplotz (https://keybase.io/hotzeplotz) on keybase.
* I have a public key whose fingerprint is F181 C0CD 9D04 F3CE EBC1 B3E2 0C9D 57B1 AD6D E667
To claim this, I am signing this object:
Metro vs City population
@hotzeplotz
hotzeplotz / index.html
Last active August 29, 2015 14:03 — forked from anonymous/index.html
<!doctype><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Odyssey.js Scroll</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png">
<link rel="icon" type="image/png" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png">
@hotzeplotz
hotzeplotz / full_profile_with_patched_PodsAPI.log
Last active August 29, 2015 14:00
profiling log for code using Pods - tracking slowdown issue which started with Pods 2.3.10
[28-Apr-2014 04:52:28 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2012/includes/pods/pods/article/pods-article.php : 7 : '0.12187500 1398660748'
[28-Apr-2014 04:52:30 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2012/includes/pods/pods/article/pods-article.php : 20 : '0.43714600 1398660750'
[28-Apr-2014 04:52:30 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2012/includes/pods/pods/article/pods-article.php : 29 : '0.44079700 1398660750'
[28-Apr-2014 04:52:30 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2012/includes/pods/pods/article/pods-article.php : 36 : '0.44684500 1398660750'
[28-Apr-2014 04:52:30 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2012/includes/pods/pods/article/pods-article.php : 42 : '0.44755500 1398660750'
[28-Apr-2014 04:52:39 UTC] tracing timestamp: /srv/web/wordpress/www/htdocs/wp-content/themes/lsecities-2
@hotzeplotz
hotzeplotz / PodsAPI.diff
Created April 17, 2014 17:21
diff between PodsAPI.php (Pods 2.4) and my patched version (from Pods 2.3.12, with commit e7fbf4dcf8b928adbf88604ae7ee1dee63679e37 removed altogether)
--- classes/PodsAPI.php 2014-04-17 17:53:31.474513029 +0100
+++ /tmp/PodsAPI.php 2014-04-17 18:01:09.000000000 +0100
@@ -106,13 +106,12 @@
* @param array $meta (optional) Associative array of meta keys and values
* @param bool $strict (optional) Decides whether the previous saved meta should be deleted or not
* @param bool $sanitized (optional) Will unsanitize the data, should be passed if the data is sanitized before sending.
- * @param array $fields (optional) The array of fields and their options, for further processing with
*
* @return bool|mixed
*