Skip to content

Instantly share code, notes, and snippets.

@balzss
balzss / hooks.md
Last active June 9, 2020 11:00
about the container hooks in pal

About the useXYZContainer hooks

Certain components are almost always need to be exposed at a global level. Such components are the Modal, SidePanel or the ToastNotification. The goal of these container hooks is to make the usage of those components easier and less error prone.

Benefits

  • can be used anywhere and the components are always going to be at the top of the component tree
  • no accidental duplicates: always one or no instance is present

How to use them

@balzss
balzss / devtools.md
Last active March 27, 2020 10:55
devtools

Chrome devtools tips & tricks

Table of content

  • Elements tab
  • Console and logging
  • Sources tab
  • Network tab
  • Commands
  • Misc
@balzss
balzss / blockchain-resources.md
Last active December 9, 2020 23:39
Resources for blockchain developement and cryptocurrencies. Mainly for Ethereum and Bitcoin.
settings.scrollStepSize = 90;
map('h', 'E');
map('l', 'R');
map('J', 'd');
map('K', 'u');
map('u', 'S');
map('U', 'D');
map('O', 't');
map('o', 'go');
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var socketioClient = require('socket.io')(server);
var mqtt = require('mqtt');
app.use(express.static('public'));
var connectOptions = {
host: 'm2m.eclipse.org',
@balzss
balzss / specs.json
Last active July 10, 2017 13:28
specs for oee simulation
[
{
"nMachines": 1,
"taktTime": 500,
"runTime": 35
},
{
"nMachines": 1,
"taktTime": 500,
"runTime": 35
@balzss
balzss / CryptoUtil.java
Last active October 30, 2022 05:23
Utility library for RSA cryptography on Android
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;

Keybase proof

I hereby claim:

  • I am balzss on github.
  • I am balzss (https://keybase.io/balzss) on keybase.
  • I have a public key ASBeHzGA1GobD4gDPu5g6_fyxsZGjknKPlaIqDfOBZETOAo

To claim this, I am signing this object:

megj. a dupla egyenlőség jel nem lesz része a nyelvnek csupán a funkciók működésének szemléltetésére használatos

arithmetic functions:

sum(1 2 3) == 6
sub(5 2 1) == 5-3-1 == 1
div(8 2 2) == 8/2/2 = 2
prod(2 3 4) == 2*3*4 == 24
mod(9 3 2) == 8%5%2 == 1
min(8 3 7 2) == 2