Skip to content

Instantly share code, notes, and snippets.

View bossiernesto's full-sized avatar

Ernesto Gabriel Bossi Carranza bossiernesto

View GitHub Profile

Tiny HTTP

A very small HTTP client with Rack/WSGI style interfaces.

The setup

$sid = 'ACxxxxxxxxxxxx';
$token = '12345678';
$http = new TinyHttp("https://$sid:[email protected]");
<div id="fb-root"></div>
<script>
// Load the SDK Asynchronously
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
I came across this problem while trying to add the Datastax Cassandra driver
as a Maven dependency to a Scala project.
After adding the dependency to the pom, Scala IDE (3.0.1) complains with this
error yes/no confirmation box.
Add Scala library to project classpath? There was an error initializing the
Scala compiler: could not find a required class: object scala.runtime in
compiler mirror. No/Yes
@bossiernesto
bossiernesto / README.md
Last active December 21, 2015 05:08 — forked from ngauthier/README.md
All values are hexadecimal.
If [reg32] is [esp] add 24 at the end.
00 00-3f add [reg32],reg8
00 40-7f xx add [reg32+xx],reg8
01 00-3f add [reg32],reg32
01 40-7f xx add [reg32+xx],reg32
01 c0-ff add reg32,reg32
import httplib
import urllib2
import ssl
import certifi
from backports.ssl_match_hostname import match_hostname
class CertValidatingHTTPSConnection(httplib.HTTPConnection):
default_port = httplib.HTTPS_PORT
deploymentApplications := { 'tools'. 'browse' }.
appsToRemove := WADispatcher default handlers reject: [ :e | deploymentApplications includes: e name ].
appsToRemove do: [ :e | WADispatcher default unregister: e ].
%div
%pre
%code
= preserve do
:escaped
<script>
var a = 1;
</script>