Skip to content

Instantly share code, notes, and snippets.

View ConradIrwin's full-sized avatar

Conrad Irwin ConradIrwin

View GitHub Profile
require './lib/lspace'
class << Fiber
in_lspace :new
end
LSpace.with(x: 'wrapper') do
f = LSpace.with(x: 'in fiber') do
Fiber.new do
<script>
function fill(cache) {
let list = [];
for (let i = 0; i < 30000; ++i) {
list.push(cache.put('https://example.com/probably-crash-' + i, new Response('ok')))
}
return Promise.all(list);
}
<script>
function fill(cache) {
let list = [];
for (let i = 0; i < 30000; ++i) {
list.push(cache.put('https://example.com/probably-crash-' + i, new Response('ok')))
}
return Promise.all(list);
}
<script>
function fillCache() {
caches.open('test').then(function (cache) {
for (var i = 0; i < 30000; i++) {
cache.put('https://example.com/probably-crash-' + i, new Response('ok')).then(function() {
filled.innerText = i;
})
}
{
"manifest_version": 2,
"name": "Boop",
"description": "Lightning-fast gorgeous email for professionals & power users.",
"version": "1.0",
"permissions": [
"background"
],
"background": {
"allow_js_access": false
require 'socket'
s = TCPSocket.open 'localhost', 3000
s.puts "GET /~backend/build/5972d799c0ff881e4a37.page.js HTTP/1.1\r\n"
s.puts "Host: localhost"
s.puts "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
s.puts "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"
s.puts "\r\n"
while line = s.gets
alert(
)
Copyright (c) 2012 Conrad Irwin <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH TH
hello