Skip to content

Instantly share code, notes, and snippets.

View romeboards's full-sized avatar

Dan Kass romeboards

View GitHub Profile

Keybase proof

I hereby claim:

  • I am romeboards on github.
  • I am romeboards (https://keybase.io/romeboards) on keybase.
  • I have a public key ASBMihhruiI-MaZEAo4l2dYrbljFrYSehuCj6nWjEjJwIgo

To claim this, I am signing this object:

<iframe width="100%" height="520" frameborder="0" src="https://justfixnyc.carto.com/builder/0d080ae2-5b95-427f-8356-70ee1648e011/embed" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
'groupsTitle': 'Connect with a Local Community Group',
'groupsLookMore': 'Looking for more? Search the Tenant Assistance Directory',
'groupsEmpty': 'There are no tenant organizing groups currently working in your area.',
'groupsEmptySubtitle': 'Search the Tenant Assistance Directory for other support.',
'groupsSearch': 'Enter your zipcode to find a local community group!'
@romeboards
romeboards / agg311.sql
Created September 25, 2017 01:32
311 aggregation
SELECT
string_agg(complaint_type, '<br>') as complaints,
(array_length(array_agg(incident_address), 1)) as num_of_complaints,
(array_agg(incident_address))[1] as address,
(array_agg(borough))[1] as boro,
(array_agg(incident_zip))[1] as zip,
latitude,
longitude,
the_geom,
the_geom_webmercator
function (tel) {
if (!tel) { return ''; }
var value = tel.toString().trim().replace(/^\+/, '');
if (value.match(/[^0-9]/)) { return tel; }
var country, city, number;
var obj = postcard.select("sampleImageD");
$('a#rotate').click(function () {
obj.setRotation(obj.getRotation() + 90);
});
$('a#get').click(function () {
var img = obj.getImageData();
var newImg = Filters.duotone(img, "#4B917D", "#CDF564"); //dark, light
obj.setImageData(newImg);
if(input == 0) {
srand(time(0));
}
else {
srand(input);
}
function testCSS(prop) {
return prop in document.documentElement.style;
}
.filter('spotifyUri', ['$sce', function($sce) {
return function(input) {
var a = document.createElement('a');
a.href = input;
var path = a.pathname;
var str = path.split('/').join(':');
return $sce.trustAsResourceUrl('https://embed.spotify.com/?uri=spotify' + str + "&view=coverart");
};
}]);