A very small HTTP client with Rack/WSGI style interfaces.
$sid = 'ACxxxxxxxxxxxx';
$token = '12345678';
$http = new TinyHttp("https://$sid:[email protected]");
A very small HTTP client with Rack/WSGI style interfaces.
$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 |
Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/bossiernesto/6254567/raw/70d953219b268f51fd82ab755f1bcedbf1721799/ruby-2-install-ubuntu.sh | bash -s
| 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> |