Skip to content

Instantly share code, notes, and snippets.

Installation

First of all you need to install @reatom/framework that incorparates many functions you may need in development and @reatom/logger for debugging. (Yay debugging using logs!)

npm install --save @reatom/framework @reatom/logger

Atoms are storing data and dependencies

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@BANOnotIT
BANOnotIT / index.ts
Last active December 15, 2020 21:48
forceUpdate in react functional components
const [, forceUpdate] = useReducer((a)=> (a + 1) % 100, 0)
sudo apt install zsh
chsh -s /usr/bin/zsh
# installing oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# installing plugins
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
program="BEGIN{prev = \"\"} \
\
/^# file: / {\
prev = substr(\$0, 9)\
}\
\
/$2/ {\
print prev;\
prev=\"\"\
}\
/*
Ultrasonic.cpp - Library for HC-SR04 Ultrasonic Ranging Module.library
Created by ITead studio. Apr 20, 2010.
iteadstudio.com
updated by noonv. Feb, 2011
http://robocraft.ru
*/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/perl
# Usage:
# $ echo -e "[email protected] pass1\[email protected] pass2" \
# | ./mhddfs.example.pl
$marcfs='/path/to/marcfs/binary';
$dest_dir='/path/to/destination/dir/';
$home = $ENV{"HOME"};
body > div[style^="min-width:"] {
margin: 0 !important;
}
body, .page, .panelsurround, .panel, div.head, td.head {
background-color: #080808;
color: #fff;
}
legend {
color: #fff;
}