Skip to content

Instantly share code, notes, and snippets.

View rossipedia's full-sized avatar

rossipedia rossipedia

View GitHub Profile
@rossipedia
rossipedia / *valoo.md
Created July 6, 2018 20:43 — forked from developit/*valoo.md
🐻 Valoo: just the bare necessities of state management. 160b / 120b. https://npm.im/valoo

🐻 valoo

just the bare necessities of state management.

Usage

Hotlink it from https://unpkg.com/valoo.

See Interactive Codepen Demo.

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;

Keybase proof

I hereby claim:

  • I am rossipedia on github.
  • I am rossipedia (https://keybase.io/rossipedia) on keybase.
  • I have a public key ASATX0fSFq80O9bXDEm-73E9NTAfrzCFIWKz5yUD1I3D9wo

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: {
@rossipedia
rossipedia / todomvc-redux-bare.html
Last active January 14, 2016 18:42
Single HTML file version of the Redux TodoMVC example
<!DOCTYPE html>
<html>
<head>
<title>Redux TodoMVC example</title>
<link rel="stylesheet" href="https://npmcdn.com/todomvc-app-css@2.0.4/index.css" type="text/css" />
</head>
<body>
<div class="todoapp" id="root">
</div>
<script src="https://fb.me/react-0.14.6.js"></script>
@rossipedia
rossipedia / convert.ps1
Last active January 5, 2016 06:57
packages.config -> project.json dependencies
(Select-xml '//package' -Path "packages.config" | % { """{0}"": ""{1}""" -f $_.Node.id,$_.Node.version }) -join ",`n"
@rossipedia
rossipedia / index-async.js
Last active August 29, 2015 13:57
Hogan example
// 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;