This file contains hidden or 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
Jax.getGlobal().ApplicationHelper = Jax.Helper.create | |
patch_world: -> | |
Jax.World.prototype.pick_all_visible = () -> | |
context = this.context | |
w = context.canvas.width | |
h = context.canvas.height | |
data = new Uint8Array(w*h*4) | |
data.w = w | |
data.h = h | |
data.f = f = 4 |
This file contains hidden or 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
$("canvas").remove(); | |
c = document.createElement('canvas'); | |
c.width = c.height = 300; | |
$(document.body).append(c); | |
$(c).css("width", "300px"); | |
$(c).css("height", "300px"); | |
$(c).css("position", "absolute"); | |
$(c).css("top", "0px"); | |
$(c).css("left", "0px"); | |
$(c).css("border", "1px solid #000"); |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'openssl' | |
=begin | |
Implements the MAC generation process which needs to be applied to Standard 70 | |
transaction requests and replies. Uses example data to assert correctness at | |
each step of the process. | |
This script generates the MAC and MAC residue for the example request message, |
OlderNewer