just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo.
just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo.
| struct MiniRandomSequence | |
| { | |
| public MiniRandomSequence(byte max, Random rng) | |
| { | |
| if (max > 64) | |
| throw new ArgumentOutOfRangeException($"MiniRandomSequence max range is 63 (got {max})"); | |
| _rng = rng; | |
| _max = max; | |
| _seen = 0; |
I hereby claim:
To claim this, I am signing this object:
| // See https://github.com/facebook/jscodeshift for instructions on how to use codemods | |
| module.exports = function ({path, source}, {jscodeshift: shift}, opts) { | |
| return shift(source) | |
| .find(shift.MemberExpression, { | |
| object: { | |
| object: { | |
| type: 'Identifier', | |
| name: 'process' | |
| }, | |
| property: { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Redux TodoMVC example</title> | |
| <link rel="stylesheet" href="https://npmcdn.com/[email protected]/index.css" type="text/css" /> | |
| </head> | |
| <body> | |
| <div class="todoapp" id="root"> | |
| </div> | |
| <script src="https://fb.me/react-0.14.6.js"></script> |
| (Select-xml '//package' -Path "packages.config" | % { """{0}"": ""{1}""" -f $_.Node.id,$_.Node.version }) -join ",`n" |
| // This is an async example | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var hogan = require('hogan.js'); | |
| fs.readFile(path.resolve(__dirname, 'template.hogan'), 'utf8', function(err, template) { | |
| if (err) { | |
| console.error(err); | |
| return; |