OP_HASH160
0x14
<hash160 of alice's secret>
OP_EQUAL
OP_TOALTSTACK
OP_HASH160
0x14
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
// when 'func' is a function that expects callback as the first parameter | |
function promisify(func){ | |
return (...args) => { | |
return new Promise((resolve,reject) => { | |
func.call(undefined, (err,res)=>{ | |
if(err){ | |
return reject(err); | |
} | |
return resolve(res); | |
},...args) |
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
/** | |
* videojs-bug | |
* @version 1.0.0-rc.3 | |
* @copyright 2018 johndanek <[email protected]> | |
* @license MIT | |
*/ | |
.video-js .vjs-bug{display:inline-block;position:absolute}.video-js .vjs-bug.no-link{pointer-events:none}.video-js .vjs-bug.vjs-bug-tl{top:0;left:0}.video-js .vjs-bug.vjs-bug-tr{top:0;right:0}.video-js .vjs-bug.vjs-bug-bl{bottom:0;left:0}.video-js .vjs-bug.vjs-bug-br{bottom:0;right: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
!function e(t,n,r){function i(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){var n=t[a][1][e];return i(n||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e, |
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
/** | |
* videojs-mux | |
* @version 2.4.0 | |
* @copyright 2018 Mux, Inc. | |
* @license | |
*/ | |
(function(){var define=false; | |
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("video.js"));else if("function"==typeof define&&define.amd)define(["video.js"],t);else{var a=t("object"==typeof exports?require("video.js"):e.videojs);for(var i in a)("object"==typeof exports?exports:e)[i]=a[i]}}("undefined"!=typeof self?self:this,function(e){return function(e){function t(i){if(a[i])return a[i].exports;var r=a[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,i){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,a){!function(){!function(t,a){e.exports=a()}(0,function(){return functio |
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 | |
ROOT_UID=0 | |
SUCCESS=0 | |
E_USEREXISTS=70 | |
# Run as root, of course. (this might not be necessary, because we have to run the script somehow with root anyway) | |
if [ "$UID" -ne "$ROOT_UID" ] | |
then | |
echo "Must be root to run this script." | |
exit $E_NOTROOT |
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
"bufio" | |
"os" | |
) | |
func cleanString(stream,seperator string) []int{ |
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
#!/usr/bin/python | |
from PIL import Image | |
import os | |
resize = (20,20) | |
read_path = "Img/Sample%03d/img%03d-%03d.png" | |
write_path = "Downscaled/Sample%03d/img%03d-%03d.png" | |
dataset = open("kannada.csv","w+") | |
for letter in range(1,18): | |
for sample in range(1,26): |
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
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int a = 3; | |
int b = 4; | |
int* pointerToA = &a; | |
int* pointerToB = &b; |
NewerOlder