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
//.. | |
function onHandData(mid, module, data) { | |
var canvas = document.getElementById('myCanvas'); | |
var context = canvas.getContext('2d'); | |
var radius = 5; | |
var scale = 1; | |
canvas.width = imageSize.width; | |
canvas.height = imageSize.height; |
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
import com.github.nitram509.jmacaroons.Macaroon; | |
import com.github.nitram509.jmacaroons.MacaroonsBuilder; | |
import com.github.nitram509.jmacaroons.MacaroonsVerifier; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; | |
public class JMacaroonsBenchmark { |
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
// requires | |
// $> npm install benchmark | |
var Benchmark = require('benchmark'); | |
var suite = new Benchmark.Suite; | |
var MacaroonsBuilder = require('../index.js').MacaroonsBuilder; | |
var MacaroonsVerifier = require('../index.js').MacaroonsVerifier; | |
var serialized1 = (function prepare_a_macaroon_for_deserialization_with_string() { |
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
/** | |
* Test to re-produce https://github.com/MeteoGroup/jbrotli/issues/2 | |
*/ | |
#include <fcntl.h> | |
#include <string> | |
#include "../enc/compressor.h" | |
int main(int argc, char **argv) { | |
const bool is_last = true; |
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
#!/bin/sh | |
############################################################################# | |
# A script which inserts a fortune message and a date into Zoom's Background. | |
# tested on macOS Mojave, 10.14.6 | |
############################################################################# | |
# your personal Zoom settings | |
ZOOM_DB_PATH="/Users/xxx/Library/Application Support/zoom.us/data/zoomus.db" | |
# the command to figure out the currently defined background image | |
# you need to have sqlite installed on your machine |
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/osascript | |
on run argv | |
tell application "System Events" | |
tell application process "zoom.us" | |
if menu item "Mute Audio" of menu "Meeting" of menu bar 1 exists then | |
set mnu to menu item "Mute Audio" of menu "Meeting" of menu bar 1 | |
click mnu | |
return | |
end if |