Thanks for picking the Build a Bot tutorial! Here's what you'll need to complete every piece of the tutorial:
It's currently the only desktop browser that supports speech recognition (see the kinda-sorta-spec).
/\ |‾‾| /‾‾/ /‾/ | |
/\ / \ | |_/ / / / | |
/ \/ \ | | / ‾‾\ | |
/ \ | |‾\ \ | (_) | | |
/ __________ \ |__| \__\ \___/ .io | |
execution: local | |
output: influxdb=http://influxdb:8086/k6 (http://influxdb:8086) | |
script: /scripts/base.js |
<?php // works on single-file non-ZIp64 zip files compressed with deflate (AKA a common case), licensed MIT | |
function getLinesFromZippedCSVfromURL(string $url) : \Generator | |
{ | |
$stream = fopen($url, 'rb'); | |
fread($stream, 4 + 2 + 2 + 2 + 2 + 2 + 4); // skip up to compressed size | |
// bindec() was doing weird things, hence converting through hex first | |
// sttrev() to match endian-ness to expectations; zip file values are little-endian |
<?php | |
$eventId = 7021; | |
#$eventId = 7045; #Yorkshire, for testing | |
$comments = json_decode(file_get_contents('https://api.joind.in/v2.1/events/'.$eventId.'/talk_comments?resultsperpage=9999'), true)['comments']; | |
$users = []; | |
foreach ($comments as $comment) { |
<?php // Pretty sure this doesn't clean up on exceptions, so keep that in mind | |
trait With | |
{ | |
abstract protected function enter(...$args); | |
protected function exit($built, ...$initArgs) | |
{ | |
// override this if needed | |
} |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.distributions = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | |
exports.Normal = require('./distributions/normal.js'); | |
exports.Studentt = require('./distributions/studentt.js'); | |
exports.Uniform = require('./distribut |
<?php // requires aws/aws-php-dsk | |
// reads s3://bucket/key.ext lines from STDIN, saves them to ../files | |
require __DIR__ . '/vendor/autoload.php'; | |
ini_set("memory_limit", "2G"); // impacted by concurrency + file sizes, since we aren't streaming | |
$s3 = new Aws\S3\S3Client(['credentials' => [ | |
'key' => 'KEY_HERE', 'secret' => 'SECRET_HERE' |
Thanks for picking the Build a Bot tutorial! Here's what you'll need to complete every piece of the tutorial:
It's currently the only desktop browser that supports speech recognition (see the kinda-sorta-spec).
I hereby claim:
To claim this, I am signing this object:
Thanks for picking the Build a Bot workshop! Slides are here. Here's what you'll need to complete every piece of the workshop:
It's currently the only desktop browser that supports speech recognition (see the kinda-sorta-spec).
{ | |
"mastodon.social": { | |
"asn": "12876", | |
"desc": "AS12876, FR" | |
}, | |
"mastodon.xyz": { | |
"asn": "16276", | |
"desc": "OVH, FR" | |
}, | |
"awoo.space": { |