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
diff --git a/perllib/FixMyStreet/Geocode/Google.pm b/perllib/FixMyStreet/Geocode/Google.pm | |
index 83b36db..b3beccf 100644 | |
--- a/perllib/FixMyStreet/Geocode/Google.pm | |
+++ b/perllib/FixMyStreet/Geocode/Google.pm | |
@@ -75,6 +75,10 @@ sub string { | |
my $address = $_->{address}; | |
next unless $c->cobrand->geocoded_string_check( $address ); | |
( $longitude, $latitude ) = @{ $_->{Point}->{coordinates} }; | |
+ mySociety::Locale::in_gb_locale { | |
+ $longitude = "$longitude"; |
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/perl | |
use warnings; | |
use strict; | |
use LWP::Simple; | |
use XML::XPath; | |
use XML::XPath::XMLParser; | |
my $file = 'today.xml'; | |
unlink($file); |
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
hildenae@offle:~/tmp/twitter$ cat kopweb.py | |
from twitter import * | |
#oauth_dance("My App Name", CONSUMER_KEY, CONSUMER_SECRET, MY_TWITTER_CREDS) | |
oauth_token="###############" | |
oauth_secret="##############" | |
CONSUMER_KEY="#############" | |
CONSUMER_SECRET="###########" | |
# = read_token_file(MY_TWITTER_CREDS) | |
t = Twitter(auth=OAuth(oauth_token, oauth_secret, CONSUMER_KEY, CONSUMER_SECRET)) |
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/python | |
import sys | |
from twitter import * | |
if len(sys.argv) > 1: | |
def read_data_file(filename): | |
f = open(filename) | |
return f.readline().strip(), f.readline().strip(), f.readline().strip(), f.readline().strip() | |
handle=sys.argv[1] | |
exclude_replies=0 |
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
https://github.com/trinidad/trinidad/wiki/init.d-scripts | |
#!/bin/sh | |
set -e | |
# Must be a valid filename | |
NAME=trr | |
#/var/run/app must be writable by your user | |
PIDFILE=/var/run/app/trr.pid |
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
Welcome to gmvault (version 1.8.1-beta). | |
Run gmvault --help to display the help. | |
Run gmvault {command} --help to display help for specific commands. | |
gmvault-shell>gmvault --help | |
Anders gjenkjennes ikke som en intern eller ekstern kommando, | |
kjørbart program eller satsvis fil. | |
usage: gmvault [-h] [-v] {sync,restore,check,export} ... |
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
mode gjenkjennes ikke som en intern eller ekstern kommando, | |
kjørbart program eller satsvis fil. | |
Welcome to gmvault (version 1.8.1-beta). | |
Run gmvault --help to display the help. | |
Run gmvault {command} --help to display help for specific commands. | |
gmvault-shell>gmvault --help | |
Anders gjenkjennes ikke som en intern eller ekstern kommando, | |
kjørbart program eller satsvis fil. |
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
git remote add kagee https://github.com/Kagee/fyba.git | |
git fetch kagee | |
git checkout kagee/ninwin | |
git branch ninwin | |
git checkout ninwin | |
git push --set-upstream origin ninwin |
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/local/include/fyba: | |
fyba.h fygm.h fyut.h | |
./usr/local/lib: | |
libfyba.a libfyba.so* libfyba.so.0.0.0 libfygm.la libfygm.so.0* libfyut.a libfyut.so* libfyut.so.0.0.0 | |
libfyba.la libfyba.so.0* libfygm.a libfygm.so* libfygm.so.0.0.0 libfyut.la libfyut.so.0* | |
./usr/local/share/doc/fyba: | |
fyba1.html fyba2.html fyba.html translators_needed |
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
latest.log MODIFY | |
latest.log MODIFY | |
latest.log MODIFY | |
latest.log CLOSE_WRITE,CLOSE | |
# restart server | |
latest.log OPEN | |
latest.log CLOSE_WRITE,CLOSE | |
latest.log MOVE_SELF | |
latest.log OPEN | |
latest.log ACCESS |