Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Geocode with Google Maps</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<style> | |
html, body, #map-canvas { | |
height: 100%; | |
margin: 0px; |
This file contains 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 copyDriveWithPermissions(){ | |
var originFolder = DriveApp.getFolderById("XXX-XXX"); | |
var destinationFolder = DriveApp.getFolderById("XXX-XXX"); | |
var currentFolder = destinationFolder; | |
var totalCount = traverseFolder(originFolder,0, currentFolder); | |
} | |
function traverseFolder(folder,total, currentFolder) { | |
This file contains 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
package com.pushapp.tests; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.List; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.HttpClient; |
This file contains 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
import tweepy | |
from tweepy import Stream | |
from tweepy import OAuthHandler | |
from tweepy.streaming import StreamListener | |
import json | |
import datetime | |
import MySQLdb; | |
consumer_key = '' | |
consumer_secret = '' |
This file contains 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 | |
$link = mysql_connect('localhost', '', ''); | |
mysql_select_db(''); | |
$create_table = "CREATE TABLE IF NOT EXISTS `json` ( | |
`id` int(11) NOT NULL, | |
`reporting-org_type` text NOT NULL, | |
`reporting-org_ref` text NOT NULL, | |
`reporting-org_text` text NOT NULL, | |
`iati-identifier` text NOT NULL, |
This file contains 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
{"checklists":[{"id":"1","name":"Category 1","items":[{"id":"1","text":"question1"},{"id":"2","text":"question2"},{"id":"3","text":"question3"}]},{"id":"2","name":"Category 2","items":[{"id":"4","text":"question4"},{"id":"5","text":"question5"}]}]} |
This file contains 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 | |
/** | |
* Scrapper for geocoding list with multiple location columns | |
* If a finer location fails, it settles for the next best thing | |
* | |
* @author http://twitter.com/nickhargreaves | |
*/ | |
//Db connection | |
$link = mysql_connect("", "", ""); |
This file contains 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
import base64 | |
import datetime | |
import json | |
from django.conf import settings | |
import requests | |
import uuid | |
def make_request(url, data, request_date, msisdn, pin): |
OlderNewer