Skip to content

Instantly share code, notes, and snippets.

View TheCyberWatchers's full-sized avatar

The Cyber Watchers TheCyberWatchers

View GitHub Profile
View Web Development
---------------- index.css -----------------
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
View Rock_Paper_Scissor(Week 4)
//index.mjs
import { loadStdlib, ask } from "@reach-sh/stdlib";
import * as backend from './build/index.main.mjs';
const stdlib = loadStdlib();
const isAlice = await ask.ask(
`Are you Alice?`,
ask.yesno
);
const who = isAlice ? 'Alice' : 'Bob'
View Rock_Paper_Scissor(Week 3)
//index.mjs
import { loadStdlib } from "@reach-sh/stdlib";
import * as backend from './build/index.main.mjs';
const stdlib = loadStdlib();
const startingBalance = stdlib.parseCurrency(100);
const accAlice = await stdlib.newTestAccount(startingBalance);
const accBob = await stdlib.newTestAccount(startingBalance);
const fmt = (x) => stdlib.formatCurrency(x, 4);
View Morra
//index.mjs
import { loadStdlib, ask } from '@reach-sh/stdlib';
import * as backend from './build/index.main.mjs';
const stdlib = loadStdlib();
const allResults = [ "It's a Draw", "Alice Wins!", "Bob Wins!", "No Result" ];
const isAlice = await ask.ask(
`Are you Alice?`,
ask.yesno
);
View Rock_Paper_Scissor(Week 2)
//index.mjs
import { loadStdlib } from "@reach-sh/stdlib";
import * as backend from './build/index.main.mjs';
const stdlib = loadStdlib();
const startingBalance = stdlib.parseCurrency(100);
const accAlice = await stdlib.newTestAccount(startingBalance);
const accBob = await stdlib.newTestAccount(startingBalance);
const fmt = (x) => stdlib.formatCurrency(x, 4);
View Rock_Paper_Scissor(Week 1)
//index.mjs
import { loadStdlib } from '@reach-sh/stdlib';
import * as backend from './build/index.main.mjs';
const stdlib = loadStdlib();
const startingBalance = stdlib.parseCurrency(100);
const accAlice = await stdlib.newTestAccount(startingBalance);
const accBob = await stdlib.newTestAccount(startingBalance);