Skip to content

Instantly share code, notes, and snippets.

body > div[style^="min-width:"] {
margin: 0 !important;
}
body, .page, .panelsurround, .panel, div.head, td.head {
background-color: #080808;
color: #fff;
}
legend {
color: #fff;
}
#!/usr/bin/perl
# Usage:
# $ echo -e "First@mail.ru pass1\nSecond@list.ru pass2" \
# | ./mhddfs.example.pl
$marcfs='/path/to/marcfs/binary';
$dest_dir='/path/to/destination/dir/';
$home = $ENV{"HOME"};
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
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
*/
program="BEGIN{prev = \"\"} \
\
/^# file: / {\
prev = substr(\$0, 9)\
}\
\
/$2/ {\
print prev;\
prev=\"\"\
}\
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
@BANOnotIT
BANOnotIT / index.ts
Last active December 15, 2020 21:48
forceUpdate in react functional components
const [, forceUpdate] = useReducer((a)=> (a + 1) % 100, 0)

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:

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