Skip to content

Instantly share code, notes, and snippets.

View dymarchyk's full-sized avatar

Dmitriy Dymarchyk dymarchyk

View GitHub Profile
@dymarchyk
dymarchyk / singleton.dart
Created September 12, 2019 08:14 — forked from theburningmonk/singleton.dart
Using Dart's factory constructor feature to implement the singleton pattern
class MyClass {
static final MyClass _singleton = new MyClass._internal();
factory MyClass() {
return _singleton;
}
MyClass._internal() {
... // initialization logic here
}
@dymarchyk
dymarchyk / generate-ssh-key.sh
Created July 10, 2019 09:00 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@dymarchyk
dymarchyk / flid3d.scss
Created September 6, 2018 08:57
flip 3d container
.flip-container {
perspective: 1000px;
&.active .flipper {
transform: rotateY(180deg);
}
.front, .back {
width: 100%;
height: auto;
backface-visibility: hidden;
position: absolute;