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
# | |
# Wide-open CORS config for nginx | |
# | |
location /polldaddy { | |
proxy_pass https://api.polldaddy.com/; | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Credentials' 'true'; |
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
if (XMLHttpRequest.prototype.sendAsBinary === undefined) { | |
XMLHttpRequest.prototype.sendAsBinary = function(string) { | |
var bytes = Array.prototype.map.call(string, function(c) { | |
return c.charCodeAt(0) & 0xff; | |
}); | |
this.send(new Uint8Array(bytes).buffer); | |
}; | |
} | |
FB.PostImage = function(authToken, data, message) { |
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
{ | |
"name": "oauth-shares", | |
"description": "oauth twitter and flickr shares integration", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"express": "3.x", | |
"oauth": "0.9.x" | |
} | |
} |
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
require "./share" | |
run Share.new |
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> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script> | |
</head> | |
<body> | |
<script> | |
$(document).ready(function() { | |
var url = "https://twitter.com/intent/tweet?" + $.param({ |
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
--- a/libtransmission/peer-mgr.c 2013-06-30 22:58:23.208920486 +0300 | |
+++ b/libtransmission/peer-mgr.c 2013-06-30 23:07:26.238865338 +0300 | |
@@ -1003,6 +1003,27 @@ | |
return 0; | |
} | |
+static int | |
+comparePieceForSequential ( const void * va, const void * vb ) | |
+{ | |
+ const struct weighted_piece * a = va; |
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(undefined) { | |
"use strict"; | |
var COMMON_URL = "/combres.axd/angular_common_templates/1"; | |
var get_promise = function (url, $http, $injector) { | |
return $http.get(url).then(function(response) { | |
$injector.get("$compile")(response.data); | |
return response; | |
}); |
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(undefined) { | |
"use strict"; | |
if (!ko.templates) { | |
ko.templates = {}; | |
} | |
if (!ko.templates_data) { | |
ko.templates_data = {}; | |
} |
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($, undefined) { | |
"use strict"; | |
if (!ko.templates) { | |
ko.templates = {}; | |
} | |
var StringTemplateSource = function(string) { | |
this.string = string; | |
} |
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 infowindow = new google.maps.InfoWindow({ | |
content : "<div></div>" | |
}); | |
(function (item, item_is_work_order, item_is_task, marker, infowindow) { | |
google.maps.event.addListener(infowindow, "domready", function () { | |
var wrapper_el = $(this.k.contentNode).closest(".gm-style-iw").parent() | |
.empty().css({ | |
width : "", | |
height : "", | |
cursor : "" |
OlderNewer