This file contains hidden or 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
<!-- User-selected issues --> | |
<script data-electnext> | |
(function() { | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.async = true; | |
script.src = 'http://electnext.com/widget/v2.js?key=dae517d92ae38ee6e8c48a23401f52a75a10b362'; | |
var entry = document.getElementsByTagName('script')[0]; | |
entry.parentNode.insertBefore(script, entry); |
This file contains hidden or 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
{ | |
"_id": "appconfig", | |
"doc_type": "config", | |
"city_name": "San Francisco", | |
"brought_to_you_by": "SF Arts Commision", | |
"google_analytics": "UA-XXXXXXXX-X" | |
} |
This file contains hidden or 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
var csv = require('csv'), | |
cradle = require('cradle'); | |
var docs = []; | |
var successCount = 0, | |
failCount = 0, | |
curproc = 0, | |
throttle = 5; |
This file contains hidden or 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
[ | |
{ | |
"rmt":"276/0", | |
"latitude":"42.325384", | |
"longitude":"-71.075201", | |
"markername":"orange", | |
"opts":{ | |
"title":"Roxbury Friendship Fence" | |
}, | |
"text":"<div class=\"gmap-popup\"></div>" |
This file contains hidden or 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
function(doc) { | |
doc['clean_address'] = doc['ALL_meSSed_uP_addr'].toLowerCase().replace(/\b[a-z]/g, function() { return arguments[0].toUpperCase();}); | |
return doc; | |
} |
This file contains hidden or 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 | |
/* | |
Plugin Name: Category Excluder | |
Plugin URI: https://gist.github.com/1143511 | |
Description: Added a way to pass a list of IDs to be excluded from the default Wordpress Categories widget. | |
Author: @mertonium | |
Version: 0.1 | |
Author URI: http://mertonium.com | |
*/ | |
/** |
This file contains hidden or 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/env ruby | |
############################################################################### | |
# Philly Open311 Knowledgebase Scraper | |
############################################################################### | |
require 'nokogiri' | |
require "net/http" | |
require "uri" | |
require "CSV" |
This file contains hidden or 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 | |
// Config variables | |
define("FULL_OVERWRITE", true); | |
$source_couch = "http://yourcouchinstance.com"; | |
$destination_couch = "http://yourothercouchinstance.com"; | |
// Counter | |
$db_count = 0; | |
// Time check (we'll use this later) |
This file contains hidden or 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 | |
// Configure control variables | |
$couch_url = "http://yourcouchinstance.com"; | |
$path_to_couchapp = "/local_path_to/couchapp/"; | |
// Counter | |
$db_count = 0; | |
// Time check (we'll use this later) | |
$start_ts = time(); |
NewerOlder