Skip to content

Instantly share code, notes, and snippets.

@Juice10
Juice10 / basic.css
Created November 2, 2022 15:29
css for rrweb test
body { color: pink; }
/*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
const MAX_BUFFERED_AMOUNT = 64 * 1024;
const ICECOMPLETE_TIMEOUT = 5 * 1000;
const CHANNEL_CLOSING_TIMEOUT = 5 * 1000;
function randombytes (size) {
const array = new Uint8Array(size);
for (let i = 0; i < size; i++) {
array[i] = (Math.random() * 256) | 0;
}
This file has been truncated, but you can view the full file.
[{"_sid":1,"data":{"height":1061,"href":"https://rocketium.com/advertising/campaign/editor/GlTHz1JAEMn5/New-Project","width":1066},"timestamp":1660756262460,"type":4},{"_sid":2,"data":{"initialOffset":{"left":0,"top":0},"node":{"childNodes":[{"id":2,"name":"html","publicId":"","systemId":"","type":1},{"attributes":{"lang":"en","style":"--bg-color:#fff; --primary-bg-color:#47478A; --primaryBgColor:#47478A; --secondary-bg-color:#EAECF0; --active-bg-color:var(--campaign-selection-bg-color, #f3f3f3); --tertiary-bg-color:#47478A; --text-color:#667085; --primary-text-color:#47478A; --text-bg-color:#222; --active-text-color:#262626; --border-color:#EAECF0; --primary-border-color:#47478A; --input-bg-color:#f4f4f4; --input-bg-hover-color:#f6f6f6; --input-text-color:#222; --input-border-color:#F2F4F7; --input-icon-color:#888; --input-content-bg-color:#fff; --input-active-border-color:#cdcdcd; --primary-btn-color:#47478A; --primary-btn-text-color:#fff; --primary-btn-border-color:#47478A; --secondary-btn-color:#47478A; -
This file has been truncated, but you can view the full file.
[{"_sid":1,"data":{"height":1061,"href":"https://rocketium.com/advertising/campaign/editor/GlTHz1JAEMn5/New-Project","width":1066},"timestamp":1660756262460,"type":4},{"_sid":2,"data":{"initialOffset":{"left":0,"top":0},"node":{"childNodes":[{"id":2,"name":"html","publicId":"","systemId":"","type":1},{"attributes":{"lang":"en","style":"--bg-color:#fff; --primary-bg-color:#47478A; --primaryBgColor:#47478A; --secondary-bg-color:#EAECF0; --active-bg-color:var(--campaign-selection-bg-color, #f3f3f3); --tertiary-bg-color:#47478A; --text-color:#667085; --primary-text-color:#47478A; --text-bg-color:#222; --active-text-color:#262626; --border-color:#EAECF0; --primary-border-color:#47478A; --input-bg-color:#f4f4f4; --input-bg-hover-color:#f6f6f6; --input-text-color:#222; --input-border-color:#F2F4F7; --input-icon-color:#888; --input-content-bg-color:#fff; --input-active-border-color:#cdcdcd; --primary-btn-color:#47478A; --primary-btn-text-color:#fff; --primary-btn-border-color:#47478A; --secondary-btn-color:#47478A; -
@Juice10
Juice10 / style.css
Created May 31, 2022 12:43
Small stylesheet
body {
color: yellow;
}
@Juice10
Juice10 / appz.json
Last active March 13, 2022 19:07 — forked from codesiddhant/gist:c91266dec0b04688d4b05011e6aea140
rrweb canvas recording on app.ziteboard.com
This file has been truncated, but you can view the full file.
[{"type":4,"data":{"href":"https://app.ziteboard.com/","width":1600,"height":900},"timestamp":1647195010983},{"type":2,"data":{"node":{"type":0,"childNodes":[{"type":1,"name":"html","publicId":"","systemId":"","id":2},{"type":2,"tagName":"html","attributes":{"lang":"en","class":"windows desktop landscape wf-loading","style":"background-color: transparent; background-size: auto; background-image: none; position: absolute;"},"childNodes":[{"type":2,"tagName":"head","attributes":{},"childNodes":[{"type":3,"textContent":"\n","id":5},{"type":2,"tagName":"title","attributes":{},"childNodes":[{"type":3,"textContent":"Ziteboard","id":7}],"id":6},{"type":3,"textContent":"\n","id":8},{"type":2,"tagName":"meta","attributes":{"charset":"utf-8","name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"},"childNodes":[],"id":9},{"type":3,"textContent":"\n","id":10},{"type":2,"tagName":"meta","attributes":{"name":"apple-mobile-web-app-capable","content":"yes"},"child
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Record @2020_07_20T15_11_13</title>
<link rel="stylesheet" href="../dist/rrweb.min.css" />
</head>
@Juice10
Juice10 / play.cr
Last active February 15, 2019 19:10
Calculate what percentage of taxes you'd pay if AOC's 70% tax bracket gets added
BRACKETS = {
0 => 0.1,
9700 => 0.12,
39475 => 0.22,
84_200 => 0.24,
160_725 => 0.32,
204_100 => 0.35,
510_300 => 0.37,
10_000_000 => 0.70,
}
@Juice10
Juice10 / splitwise-script.js
Last active November 12, 2018 14:31
Script to set all items in Splitwise to a specific ratio (useful for couples paying rent etc. based on income)
var yearlyIncomePersonA = 120000;
var yearlyIncomePersonB = 100000;
var query = '.expense:not(.summary)'
var delayMultiplier = 20;
var elLength = $(query).length;
var i = 0;
var maxNum = 0; // maximum number of items it should edit
var interval = setInterval(function () {
var elements = $(query).toArray();
var el = elements[i];
@Juice10
Juice10 / Gemfile
Last active September 12, 2018 16:30
source 'https://rubygems.org'
# make sure you are running the same major ruby version locally as will be used in the OpenWhisk Ruby runtime (currently 2.5.0)
ruby '>= 2.5.0', '< 2.6'
# the gems you need for your action
gem 'betterlorem'