Skip to content

Instantly share code, notes, and snippets.

View samc's full-sized avatar

Sam Craig samc

View GitHub Profile
int
main ()
{
// for loop execution
for (int q = 1; q <= 10; q = q + 1)
{
for (int qq = 1; qq <= 4; qq = qq + 1)
{
if (qq == 1)
{
var text;
for (var q = 1; q < 10; q++) {
for (var qq = 1; qq < 4; qq++) {
if (qq == 1) {
for (var a = 1; a < 10; a++) {
text += (a <= q) ? '*' : ' '
}
}
if (qq == 2) {
@samc
samc / bonywa.markdown
Created December 10, 2018 22:23
bONYwa
@samc
samc / controller.abstract.tsx
Created March 31, 2023 16:31
Abstract Controller
import * as Immer from "immer";
import * as React from "react";
import * as XS from "xstate";
import * as Custom from "@eden/library.abstract/custom";
import * as Primitives from "@eden/library.abstract/primitives";
import * as TS from "@eden/library.abstract/ts";
import * as Utils from "@eden/library.abstract/utils";
export abstract class Controller<

Pre-requisites (Docker for MacOS / Windows):

  1. In your Docker Engine configuration, make sure you have experimental set to true & feature.buildkit set to true

Screenshot 2023-05-17 at 3 42 48 PM

  1. In your ssh config, enable ssh-agent forwarding via ForwardAgent yes
  2. Make sure your ssh-agent is running and your private key(s) have been added (quick setup guide)

If you want to make things easier on yourself, you can use keychain to manage your ssh key(s).

  1. Run ssh-add -l. First make sure your key(s) are being loaded (if not, repeat step 3 carefully). Next make sure at least one of the valid indentities matches a valid ssh key linked to your GitHub account. Navigate to SSH and GPG keys in your user settings t
diff --git a/node_modules/@datadog/browser-worker/bundle/workerString.js b/node_modules/@datadog/browser-worker/bundle/workerString.js
new file mode 100644
index 0000000..9b6f74b
--- /dev/null
+++ b/node_modules/@datadog/browser-worker/bundle/workerString.js
@@ -0,0 +1,4 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var workerString = "!function(){\"use strict\";function t(t){for(var e=t.length;--e>=0;)t[e]=0}var e=256,a=286,n=30,r=15,i=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),s=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);t(_);var o=new Array(60);t(o);var d=new Array(512);t(d);var u=new Array(256);t(u);var f=new Array(29);t(f);var c,p,g,w=new Array(n);function v(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,