Skip to content

Instantly share code, notes, and snippets.

View dz-s's full-sized avatar

dz_s dz-s

  • Allegro
  • Poland
  • 21:59 (UTC -12:00)
View GitHub Profile
@dz-s
dz-s / README.md
Created April 18, 2024 07:25 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@dz-s
dz-s / System design framework.md
Created September 15, 2023 07:48 — forked from maximov-m/System design framework.md
System design framework part-1

System Design Framework

Цель интервью

  1. Дать достаточное кол-во сигналов для интервьюеру, что вы можете колаборировать, работать в команде проектировать и делать это сообща вместе
  2. Можно ли интервьюер представить вас в качестве члена команды? Сделать так что бы смог

L5-L6 отличаются интервью: На Л6 уровне нужно добавлять знания и показывать ваш личный экспирианс Систем дизайн это про общение с интервьюером

@dz-s
dz-s / babel-webpack.md
Created March 25, 2020 05:05 — forked from ncochard/babel-webpack.md
The correct way to compile ES6 using babel...

When you create a npm package, remember it might be used in a browser or a server, or even a command line utility… For each package you create, please pay attention at what it will be used for:

  1. Is it going to be used as a dependency to a nodejs application that is not bundled? (e.g. command line utilities)
  2. Is it going to be used as a dependency to a nodejs application that is bundled? (e.g. AWS Lambdas)
  3. Is it going to be used as a dependency to a browser application (always bundled)?.
  • In cases 2) and 3) you want to allow for tree shaking.
  • In cases 1) and 2) you want to benefit from the "ES6"/"ES next" features supported natively by nodejs.
  • In case 3) you also want to benefit from the native support of "ES6" from your browser.
@dz-s
dz-s / javainstall.sh
Created March 8, 2020 00:36 — forked from Sawaba/javainstall.sh
Java JDK 11 install script for Windows Subsystem for Linux (WSL)
#!/bin/bash
# This script adapted from an older post on StackOverflow by user fieldju
# https://stackoverflow.com/questions/36478741/installing-oracle-jdk-on-windows-subsystem-for-linux
# The script was for JDK 8.
# Due to major changes with JDK 11 (no JRE, no Derby, Unlimited Strength included), it was necessary to update the entire script.
set -ex
# UPDATE THESE URLs (this one updated as of 2019-03-06)
export JDK_URL=http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
@dz-s
dz-s / Tree.scala
Created December 28, 2019 17:33 — forked from dholbrook/Tree.scala
Scala binary tree
/**
* D Holbrook
*
* Code Club: PO1
*
* (*) Define a binary tree data structure and related fundamental operations.
*
* Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported:
*
* Constructors
@dz-s
dz-s / publish_python.md
Created August 24, 2019 19:13 — forked from ForgottenUmbrella/publish_python.md
How to publish Python apps for human beings

How to publish Python apps for human beings

So, you've created a Python app (be it a graphical user interface with Qt or the like, or a simple command line interface). Great! But how are others going to use it? Python applications often have dependencies (e.g. from third-party modules), and they also need a Python interpreter to run them. For a developer, installing all the necessary bits and bobs to make things work is okay, but that's unacceptable for a normal user - they just want to download the thing and run it.

Below are simple instructions to publish your app on the three main operating systems: Windows, macOS and Linux.

removecontainers() {
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
}
armageddon() {
removecontainers
docker network prune -f
docker rmi -f $(docker images --filter dangling=true -qa)
docker volume rm $(docker volume ls --filter dangling=true -q)
@dz-s
dz-s / slugify.js
Created May 17, 2019 14:32 — forked from mathewbyrne/slugify.js
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
@dz-s
dz-s / okr-example.md
Created April 25, 2019 13:29 — forked from DavidWells/okr-example.md
OKR example

template: project version: 1.0 project: [Project Title] description: [Description] owner: [Owner] deadline: [YYYY-MM-DD] okrs:

  • OBJECTIVE: Grow Our Global Business
  • KR: Hit our global sales target of $100 Million in Sales
@dz-s
dz-s / cmd-list.md
Last active March 11, 2019 23:40
Useful Unix commands

du -h your_directory - the size of your target directory and subdirectories as well.