This file contains 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 <Capacitor/Capacitor.h> | |
CAP_PLUGIN(MediaCapture, "MediaCapture", | |
CAP_PLUGIN_METHOD(image, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(video, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(choose, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(mime_type, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(duration, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(save, CAPPluginReturnPromise); | |
CAP_PLUGIN_METHOD(destroy, CAPPluginReturnNone); |
This file contains 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
// A CRC32 checksum implementation. It can be used to detect data corruption. | |
// The 'byte_array' parameter is a Uint8Array, the return value is a signed 32 | |
// bit integer. If you are checksumming a stream of data, pass the last known | |
// checksum as the 'checksum' parameter. | |
/*jslint bitwise */ | |
const table = (function () { | |
let values = new Int32Array(256); | |
let value_nr = 0; |
This file contains 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/bash | |
# fatdeps.sh is a script that counts the number of subdependencies of every | |
# dependency found in a package.json file. It can be used to discover bloat, | |
# which is a major security risk in Node.js and browser applications. | |
# fatdeps.sh depends on the 'jq' and 'npx' commands. | |
# USAGE |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
-- This program finds and prints all solutions to a sudoku puzzle. | |
-- To run: | |
-- $ ghc sudoku_solver.hs | |
-- $ ./sudoku_solver | |
-- To profile: | |
-- $ ghc -prof -fprof-auto -rtsopts sudoku_solver.hs | |
-- $ time ./sudoku_solver +RTS -p |
This file contains 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 DeepLinker(options) { | |
if (!options) { | |
throw new Error('no options') | |
} | |
var hasFocus = true; | |
var didHide = false; | |
// window is blurred when dialogs are shown | |
function onBlur() { |
This file contains 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
0 | 0.008210771260531026 | |
---|---|---|
0.01 | 0.008210771260531026 | |
0.02 | 0.008216896670125255 | |
0.03 | 0.00887707970416994 | |
0.04 | 0.010482277318390965 | |
0.05 | 0.01241246194163914 | |
0.06 | 0.014545125382029886 | |
0.07 | 0.01679247010204592 | |
0.08 | 0.01906057315457573 | |
0.09 | 0.021325273201775415 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.