Instantly share code, notes, and snippets.

View twittercard.js
A copy of
See also:
var T = require("twit");
var Q = require("Q");
// key and secret for Twitter for iPhone.
// A whitelisted app is needed to access the cards API; you can't just create your own currently.
# Original:
from twitter import *
import json
import sys
import mysql.connector
import random
conn = mysql.connector.connect(user='wikistuff', password='ffutsikiw', unix_socket='/var/run/mysqld/mysqld.sock', database='wikistuff')
c = conn.cursor()
View getweatherforlocation.php
if (isset($_REQUEST["owapikey"]) && isset($_REQUEST["units"]) && isset($_REQUEST["location"])){
$owapikey = $_REQUEST['owapikey'];
$units = $_REQUEST['units'];
$location = $_REQUEST['location'];
$request = json_decode(file_get_contents("{$location}&units={$units}&APPID={$owapikey}"));
$weather = array(
View getlocationandweather.php
if (isset($_REQUEST["owapikey"]) && isset($_REQUEST["units"])){
$owapikey = $_REQUEST['owapikey'];
$units = $_REQUEST['units'];
// $request = json_decode(file_get_contents("{$ip}"));
$latitude = $request->latitude;

Keybase proof

I hereby claim:

  • I am fourtonfish on github.
  • I am fourtonfish ( on keybase.
  • I have a public key whose fingerprint is 08E6 1F26 D587 2E83 D671 215C D02B E80F 2CA4 FC74

To claim this, I am signing this object: