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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>sampleApp</title> | |
<script src="ares.js" type="text/javascript"></script> | |
<script src="http://js.kwwika.com/staging/api.js" type="text/javascript"></script> | |
<script> |
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
private string GetDocumentContents(System.Web.HttpRequestBase Request) | |
{ | |
string documentContents; | |
using (Stream receiveStream = Request.InputStream) | |
{ | |
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8)) | |
{ | |
documentContents = readStream.ReadToEnd(); | |
} | |
} |
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 OptaAshes = { | |
scriptBase: "widget/", | |
require:function(s) { | |
try{ | |
// inserting via DOM fails in Safari 2.0, so brute force approach | |
if(s.type == "text/javascript") { | |
document.write('<script type="text/javascript" src="'+s.url+'"><\/script>'); | |
} else { | |
document.write('<link rel="stylesheet" href="'+ s.url +'" />'); | |
} |
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 fileLoader= { | |
require:function(s) { | |
try{ | |
// inserting via DOM fails in Safari 2.0, so brute force approach | |
if(s.type == "text/javascript") { | |
document.write('<script type="text/javascript" src="'+s.url+'"><\/script>'); | |
} else { | |
document.write('<link rel="stylesheet" href="'+ s.url +'" />'); | |
} | |
} catch(e) { |
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
<html> | |
<head> | |
<title> | |
jQuery v1.4.2 and jQuery tablesorter plugin sorting problem | |
</title> | |
</head> | |
<body> | |
<button id="add">Add Row</button> | |
<table class="tablesorter"> |
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 | |
// https://github.com/squeeks/Pusher-PHP | |
require('squeeks-Pusher-PHP-0defb40/lib/Pusher.php'); | |
$key = 'APP_KEY'; | |
$secret = 'APP_SECRET'; | |
$app_id = 'APP_ID'; | |
$pusher = new Pusher($key, $secret, $app_id); | |
$channel_name = $_POST['channel_name']; |
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
com.pusher.define("com.pusher.test.framework", function(exports) { | |
/** | |
* Stub Pusher object. | |
*/ | |
var Pusher = function(appKey, options) { | |
Pusher.instances.push(this); | |
this.connection = new Connection(); | |
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
source 'http://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-contrib' | |
gem 'pusher' |
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 | |
function http_file_get_contents( $url ) { | |
$response = file_get_contents( $url ); | |
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
var request = require('request'); | |
var fs = require( 'fs' ); | |
var path = require('path'); | |
var WS_URL = 'http://api.ocrapiservice.com/1.0/rest/ocr'; | |
SO2(); | |
function SO2() { | |
var base64Str = fs.readFileSync( 'example.png' ).toString( 'base64' ); |
OlderNewer