This is an alternate proposal to [BIP32].
Version History:
- 12-7-2102: Addition of chain code (much as BIP32 uses).
- 12-3-2012: Initial Proposal (version 1)
""" | |
Download all document links from a web page. | |
Used to extract all the docouments from a Sharepoint document library. | |
by Mike Koss, September, 2009 | |
Notes: | |
9/14/09 mck: | |
Using Beautiful soup version 3.0.7a. The current version (3.1.0.1) is NOT resilient |
import { resolve } from 'path'; | |
import { defineConfig } from 'vite'; | |
// const rewriteImports = { | |
// name: 'rewrite-imports', | |
// transform(code: string, id: string) { | |
// console.log(`Processing ${id} ...`); | |
// if (id.endsWith('.js') || id.endsWith('.ts')) { | |
// const importRegex = /import (.*) from ['"]chai['"]/g; | |
// const replacement = "import $1 from './chai/index.js'"; |
<html> | |
<head> | |
<title>Engima Test Page</title> | |
<script src="namespace.js"></script> | |
<script src="enigma.js"></script> | |
<script src="unit.js"></script> | |
</head> | |
<body> | |
<h1><script>document.write(document.title);</script></h1> | |
<SCRIPT> |
main () { | |
print("Hello, World!"); | |
} |
class tuples(object): | |
""" | |
Iterator that generates all tuples in lexicographical order. | |
For example: | |
for t in tuples((2,3)): | |
print t | |
produces: |
Custom Function to compute versus purchase gains (FIFO).
The passed range should contain exactly three columns of data (in chronological order to preserve first-in/first-out ordering of transactions). The three columns should contain:
p(1) = 0.111111111111 = Fraction(1, 9) | |
p(2) = 0.123456790123 = Fraction(10, 81) | |
p(3) = 0.137174211248 = Fraction(100, 729) | |
p(4) = 0.152415790276 = Fraction(1000, 6561) | |
p(5) = 0.169350878084 = Fraction(10000, 59049) | |
p(6) = 0.188167642316 = Fraction(100000, 531441) | |
p(7) = 0.209075158129 = Fraction(1000000, 4782969) | |
p(8) = 0.232305731254 = Fraction(10000000, 43046721) | |
p(9) = 0.258117479171 = Fraction(100000000, 387420489) | |
p(10) = 0.175686087968 = Fraction(612579511, 3486784401) |
var assert = require('assert'); | |
var a = require('./a'); | |
suite("A", function() { | |
test("a", function() { | |
a.sub(function() { | |
assert.ok(true); | |
}); | |
a.trigger(); | |
}); |
<html> | |
<head> | |
<script src="https://cdn.firebase.com/js/client/2.3.2/firebase.js"></script> | |
</head> | |
<body> | |
<input type="button" onClick="signIn()" value="Sign In"> | |
<div id="output"></div> | |
<script> | |
var ref; | |
window.addEventListener('load', init); |