I hereby claim:
- I am fitnr on github.
- I am fitnr (https://keybase.io/fitnr) on keybase.
- I have a public key whose fingerprint is 74E5 F1EE 04D6 968C DA8A 3E81 3ABA FB3A 1D61 8BDC
To claim this, I am signing this object:
<?php | |
require 'census-geocoder-lib.php'; | |
// Who doesn't want to send in coordinates or addresses, and get Census geography back? | |
try { | |
// try passing ?lat=36.54&lng=-86.5&returntype=geographies&searchtype=coordinates | |
$api = new census_geocode($_GET); | |
echo $api->run(); |
import re | |
""" | |
Normalizes a street name with more formal street suffixes and directionals. | |
Caveats: | |
Intended for just the street name itself, not the street plus surrounding text. | |
Intended for US addresses. | |
For example, the "suffixes" regexes will strip the period off the end of 'St.' and | |
replace it with 'Street', even if it's at the end of a sentence. |
<html> | |
<head> | |
<title>TinyMouse</title> | |
<!-- TinyMCE --> | |
<script type="text/javascript" src="tinymce-dist/tinymce.min.js"></script> | |
<script type="text/javascript"> | |
tinyMCE.init({ | |
mode : "exact", | |
elements: "elm1", | |
theme : "modern", |
<html> | |
<head> | |
<title>map test</title> | |
<script></script> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDa40kHQjrMVADweLvXIVaJUjXOUraG164"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="styled-map.js" type="text/javascript"></script> | |
</head> | |
<body> |
// this is satire, do not use in real life | |
jQuery.getElementById = function(id) { | |
return jQuery('#' + id); | |
}; |
# set up a non-root user | |
# below commands assume you're running from root | |
useradd <USER> | |
passwd <USER> | |
# install another python | |
yum -y update | |
yum groupinstall -y 'development tools' | |
yum install python-devel | |
# maybe don't need this? |
from itertools import combinations | |
# get the active layer | |
inlayer = iface.activeLayer() | |
# Get the index of the NAME field, then rewind the list | |
infeatures = inlayer.getFeatures() | |
eg = infeatures.next() | |
i = eg.fields().indexFromName('NAME') | |
infeatures.rewind() |
#!/bin/sh | |
# $1 : relative filename | |
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" |
I hereby claim:
To claim this, I am signing this object: