To run the script, either do a...
tclsh jaikuarchive.tcl marks
... or for the more pure way, opt for:
chmod +x jaikuarchive.tcl
./jaikuarchive.tcl marks
#!/usr/bin/env ruby | |
# Demonstrates how access tokens/secrets can be retrieved by a non-signed reqest to http://twitter.com/oauth/access_token | |
# Based on http://github.com/jstewart/yammer4r/blob/master/bin/yammer_create_oauth_yml.rb | |
# Usage: ./twitter_test.rb -k CONSUMER_KEY -s CONSUMER_SECRET | |
require 'optparse' | |
require 'rubygems' | |
require 'oauth' |
include_once 'HTTP/OAuth/Consumer.php'; | |
require_once 'HTTP/OAuth.php'; | |
require_once 'HTTP/OAuth/Consumer/Request.php'; | |
require_once 'HTTP/Request2.php'; | |
// Set up HTTP request | |
$httpRequest = new HTTP_Request2; | |
$request = new HTTP_OAuth_Consumer_Request; | |
$request->accept($httpRequest); | |
<div id="videoContainer"></div> | |
<script src="http://stream.umbraco.org/resources/um/script/swfobject/swfobject.js"></script> | |
<script> | |
function getFlexApp(appName) { | |
if (navigator.appName.indexOf ("Microsoft") !=-1) { |
To run the script, either do a...
tclsh jaikuarchive.tcl marks
... or for the more pure way, opt for:
chmod +x jaikuarchive.tcl
./jaikuarchive.tcl marks
<?php | |
require("postmark.php"); | |
$postmark = new Postmark("KEY", "[email protected]"); | |
$fh = fopen("/tmp/test.pdf", "rb"); | |
$data = fread($fh, 4096); | |
$result = $postmark->to("[email protected]") | |
->subject("Testing attachments") |
ad_page_contract {} { | |
payload:notnull | |
} | |
package require json | |
set payload [json::json2dict $payload] | |
set repository [dict get $payload repository] | |
set repository_name [dict get $repository name] | |
set repository_url [dict get $repository url] |
It's hard to find a good example of how to verify SAML signatures online. There are plenty magic that "just calls a Java method" -- but few clear step-by-step guide.
This gist covers the signature check of a SAML response in Ruby, and as such it's also an example of how to verify an XML Secure.
The code here is lifted entirely from Morten Primdahls and Zendesks awesome SAMLR library.
(function(){ | |
var identifiedFrames = []; | |
// Method to run any reporting | |
var report = function(Player, event, playing, duration) { | |
Player.get('currentTime', function(currentTime){ | |
Player.get('duration', function(duration){ | |
console.log(event, playing, currentTime, duration); | |
}); | |
}); |
Player.bind('player:video:loaded', function(e,video){ | |
var body = $('body'); | |
$.each(body.attr('class').split(' '), function(i,className){ | |
if(/^album-\d+$/.test(className)) body.removeClass(className); | |
}); | |
$.each(video.album_id.split(' '), function(i,id){ | |
body.addClass('album-'+id); | |
}); | |
}); |
I hereby claim:
To claim this, I am signing this object: