Skip to content

Instantly share code, notes, and snippets.

View alexrohleder's full-sized avatar
🤘
building things

Alex Rohleder alexrohleder

🤘
building things
View GitHub Profile
<?php
include 'vendor/autoload.php';
$cbmapper = new Codeburner\Router\Mapper;
$cbdispatcher = new Codeburner\Router\Dispatcher($cbmapper);
$frmapper = new FastRoute\RouteCollector(new FastRoute\RouteParser\Std, new FastRoute\DataGenerator\GroupCountBased);
// for triggering the autoload
<?php
include "vendor/autoload.php";
include "routes.php";
$collector = new Codeburner\Router\Collector();
$matcher = new Codeburner\Router\Matcher($collector);
foreach ($routes as $path) {
$collector->get($path, function () use ($path) {
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="app">
<p>Insira um cpf:</p>
<input type="text" v-model="message">
@alexrohleder
alexrohleder / create-bid-fauna.js
Created December 17, 2020 21:53
create-bid-fauna.js
Query(
Lambda(
["bidderRef", "auctionId", "amount"],
Let(
{ auction: Get(Ref(Collection("auction"), Var("auctionId"))) },
If(
Equals(Select(["data", "isSettled"], Var("auction"), false), true),
Abort("Cannot bid on already settled auction"),
Let(
{

todo

  1. prettify ui (17/07)
  2. deploy a demo product (11/07)
  3. hire someone to make a demo video (20/07)
  4. finish product preview slide on pitch deck (17/07)
  5. finish team slide on pitch deck (10/07)
  6. finish ask slide on pitch deck (11/07)
  7. finish go to market plan on pitch deck (24/07)
  8. finish financial predictions on pitch deck (24/07)
@alexrohleder
alexrohleder / package.json5
Last active December 27, 2022 19:05
Analysing Webpack bundle
{
"scripts": {
// from https://github.com/sparkletown/sparkle
"analyze:bundle-stats": "npx webpack-bundle-analyzer build/bundle-stats.json -m static -r build/bundle-stats.html",
"analyze:bundle-stats:statoscope": "npx @statoscope/cli serve ./build/bundle-stats.json",
"analyze:bundle-stats:duplicates-1": "npx inspectpack --action duplicates --stats build/bundle-stats.json",
"analyze:bundle-stats:duplicates-2": "npx webpack-stats-duplicates ./build/bundle-stats.json",
}
}