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
var marker = new google.maps.Marker({ | |
position: new google.maps.LatLng(Z.d().h.getCenter().Ya, Z.d().h.getCenter().Za), | |
draggable: true, | |
map: Z.d().h | |
}); | |
var STEP = 0.000163; | |
function goto(a,b) { | |
GOTO_a = a; GOTO_b = b; | |
} |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: | |
# Author: Binux<1@binux.me> | |
# http://binux.me | |
# Created on 2013-01-14 10:29:51 | |
import re | |
import cPickle | |
import requests |
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
// vim: set et sw=2 ts=2 sts=2 ff=unix fenc=utf8: | |
// Author: Binux<i@binux.me> | |
// http://binux.me | |
// Created on 2013-01-21 20:18:42 | |
jQuery.ajax({ | |
url: 'http://pyproxy.duapp.com/http://httpbin.duapp.com/cookies/set?userid=21', | |
cache: true, | |
dataType: 'script', | |
success: function() { |
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
var _map = R; | |
var rectangle = new google.maps.Rectangle({ | |
bounds: _map.getBounds(), | |
editable: true, | |
map: _map | |
}); | |
function message(msg) { | |
$('#plexts').append('<div class="plext"><div class="pl_timestamp">'+(new Date()).getHours()+':'+(new Date()).getMinutes()+'</div><div class="pl_content pl_player"><span class="ALIENS">System: </span>'+msg+'</div></div>'); | |
$('#plext_container').scrollTop($('#plext_container')[0].scrollHeight); |
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 message(msg) { | |
$('#plexts').append('<div class="plext"><div class="pl_timestamp">'+(new Date()).getHours()+':'+(new Date()).getMinutes()+'</div><div class="pl_content pl_player"><span class="ALIENS">System: </span>'+msg+'</div></div>'); | |
$('#plext_container').scrollTop($('#plext_container')[0].scrollHeight); | |
} | |
google.maps.event.addListener(Z.c().h, 'rightclick', function(event) { | |
message('@'+event.latLng.Ya+', '+event.latLng.Za); | |
}); | |
U.prototype._show = U.prototype.show; |
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 binux_init() { | |
var bdiv = document.createElement('div');bdiv.id = 'binux-overlay';bdiv.setAttribute('style', 'display: none;'); | |
(document.body || document.documentElement).appendChild(bdiv); | |
function getOffset(elem) { | |
var top = 0; | |
var left = 0; | |
do { | |
if ( !isNaN( elem.offsetLeft) ) left += elem.offsetLeft; | |
if ( !isNaN( elem.offsetTop) ) top += elem.offsetTop; |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: | |
# Author: Binux<i@binux.me> | |
# http://binux.me | |
# Created on 2013-03-02 20:47:08 | |
import os | |
import re | |
import sys |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: | |
# Author: Binux<i@binux.me> | |
# http://binux.me | |
# Created on 2013-03-02 19:50:18 | |
import os | |
import re | |
import sys |
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
// | |
// 1. Depoly as web app (https://developers.google.com/apps-script/execution_web_apps#deploying) | |
// 2. register as web app through the APIs Console (https://code.google.com/apis/console#access) | |
// 3. add 'client_id', 'client_secret' to project properties. | |
// 4. If published to anyone else, make sure they access to the code. (https://developers.google.com/apps-script/execution_time_triggers) | |
// | |
var script_url = ScriptApp.getService().getUrl(); | |
var client_id = ScriptProperties.getProperty('client_id'); | |
var client_secret = ScriptProperties.getProperty('client_secret'); |