Skip to content

Instantly share code, notes, and snippets.

View ichub's full-sized avatar
🎯
Focusing

Ivan Chub ichub

🎯
Focusing
View GitHub Profile
@ichub
ichub / pcd-trusted-setup-ceremony_attestation.log
Created October 11, 2023 22:23
Attestation for ZK Ticket Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm ichub-2636237 and I have contributed to the ZK Ticket Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (index_20)
Contributor # 3
Contribution Hash:
e0371ca8 a1e3d490 c3c78230 5b5c349a
ffb95010 8a48d576 3b938d45 a5b149e0
26df6a97 f9b1b450 4bc815ad d4992d6c
6f3a4c06 72111fbc 18ad2035 79101733
<canvas id="my-canvas" width="500" height="500"></canvas>
<script>
let mycanvas = document.getElementById('my-canvas')
let ctx = mycanvas.getContext('2d')
console.log(mycanvas)
let bird = {
x: 20,
<canvas id="my-canvas" width="500" height="500"></canvas>
<style>
canvas {
border: 1px solid black;
}
</style>
<script>
let mycanvas = document.getElementById('my-canvas')
<canvas id="myCanvas" width="800" height="600"></canvas>
<style>
#myCanvas {
border: 1px solid black;
}
</style>
<script>
const canvas = document.getElementById("myCanvas");
const ctx = canvas.getContext("2d");
#!/usr/bin/env bash
convert -coalesce $1 frames%04d.png
rm list.txt
ffmpeg -r 10 -i frames%04d.png -vcodec mjpeg -y concatenated.mp4
for i in {1..10}; do printf "file '%s'\n" concatenated.mp4 >> list.txt; done
ffmpeg -y -f concat -i list.txt -c copy bad_format.mp4
ffmpeg -y -i bad_format.mp4 -vcodec h264 -acodec aac -strict -2 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" $1.mp4
<canvas width="800" height="600"></canvas>
<div id="score">0</div>
space to shoot <br>
arrow keys to move <br>
reload to restart
<script>
const canvas = document.querySelector("canvas");
const scoreElement = document.getElementById("score");
const ctx = canvas.getContext("2d");
flappy bird
<div id="score_div"></div>
<canvas id="my_canvas" width="800" height="600">
</canvas>
<script>
var myCanvas = document.getElementById("my_canvas");
var scoreDiv = document.getElementById("score_div");
<canvas id="canvas" width="800" height="600"></canvas>
<div id="score">THIS IS WHERE THE SCORE GOES</div>
<style>
#canvas {
border: 1px solid black;
}
</style>
<script>
<canvas id="canvas" style="border: 1px solid black"></canvas>
<p>hello</p>
<script>
var canvas = document.getElementById("canvas");
console.log(canvas);
canvas.width = 500;
canvas.height = 500;

Keybase proof

I hereby claim:

  • I am ichub on github.
  • I am ivanchub (https://keybase.io/ivanchub) on keybase.
  • I have a public key whose fingerprint is FF40 B48F 6C0C A97E DC8D A167 8219 27D6 CD2F 1B8D

To claim this, I am signing this object: