Skip to content

Instantly share code, notes, and snippets.

View czuforb's full-sized avatar
🎯
Focusing

Bence Czufor czuforb

🎯
Focusing
View GitHub Profile
@eramdam
eramdam / .skhdrc
Created November 17, 2020 15:38
yabai/skhd config
#!/usr/bin/env sh
:: default : yabai -m config active_window_opacity 1; yabai -m config normal_window_opacity 1;
# Focus
shift + alt - home : yabai -m window --focus north
shift + alt - j : yabai -m window --focus north
shift + alt - end : yabai -m window --focus south
shift + alt - k : yabai -m window --focus south
shift + alt - delete : yabai -m window --focus west
@BonneVoyager
BonneVoyager / restoreAccountFromWeb3SignedMessage.js
Last active November 16, 2022 15:46
Sign a message within web3 and then verify the signed message on the backend as a proof that the user doesn't impersonate for someone.
// First sign a 'message' on the frontend:
const web3 = new Web3(Web3.givenProvider)
const __message__ = 'abc'
web3.eth.requestAccounts()
.then((accounts) =>
web3.eth.personal.sign(__message__, accounts[0]) // this will return a 'signature'
)
// ... and then pass the message and the signature to the backend to recover public address of the signer:
const ethUtil = require('ethereumjs-util')
@MitchPierias
MitchPierias / arangodb-ec2-linux.md
Last active December 9, 2022 21:32
Deploying ArnagoDB to an EC2 Linux Instance

ArangoDB Deployment to EC2 Linux Instance

Quickly get an ArangoDB instance running on an Amazon EC2 Linux Instance

Update existing package list and then install prerequieites.

sudo yum update -y

If your running a regular amazon linuz instance

sudo yum install docker
@ganapativs
ganapativs / iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
Last active April 14, 2026 01:37
iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup
@hk-skit
hk-skit / js-oneliner.js
Last active January 9, 2024 23:46
Useful Array One-liners.
// Remove Duplicates from an array
const removeDuplicates =
arr => arr.filter((item, index) => index === arr.indexOf(item));
const removeDuplicates1 = array => [...new Set(array)];
const removeDuplicates2 = array => Array.from(new Set(array));
// Flattens an array(doesn't flatten deeply).
@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@gkhays
gkhays / DrawSineWave.html
Last active January 21, 2026 21:36
Oscillating sine wave, including the steps to figuring out how to plot a sine wave
<!DOCTYPE html>
<html>
<head>
<title>Sine Wave</title>
<script type="text/javascript">
function showAxes(ctx,axes) {
var width = ctx.canvas.width;
var height = ctx.canvas.height;
var xMin = 0;
@oranblackwell
oranblackwell / 010 deploymend-quick-start.md
Last active January 13, 2021 01:51
Bedrock Quick Start Guide
To Open HTML Preview window in Notepad++ Ctrl + Shft + H

Wordpress Source Control and Deployment

Revision-Controlled Worpdress with "One Click" Deplyoment using Git, Composer, Capistrano

[Build Status]

Author: Oran Blackwell

Revised: May 06, 2014

@kylemcdonald
kylemcdonald / three.js.shader.html
Last active January 6, 2026 14:46
Minimal three.js shader example.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}