Skip to content

Instantly share code, notes, and snippets.

@samelm
samelm / gist:b3eeb46881b9defbc1bd7626f98a348c
Created September 18, 2023 17:00 — forked from M0rtyMerr/gist:03bfed48b2cb7bdcc6f2ccdeaeaddbb7
Interview questions FROM candidate TO company
HR Process /
* Why is the vacancy open? Is this a new position or has someone previously held it?
* What's the main problem company is trying to solve by filling this position
* What are the recruitment steps?
* What’s the documental employment basis? How do we manage the docs?
* How do we handle payments? Do I send invoices?
Process /
* What are the day-to-day processes?
* How do you plan new tasks? How do you estimate them? What about deadlines management?
function readCookies() {
const cookies = document.cookie.replaceAll("; ", "&");
const params = new URLSearchParams(cookies);
return Object.fromEntries(params.entries());
}
@samelm
samelm / jsconfig.json
Created July 29, 2019 12:17
VSCode Webpack aliases
{
"compilerOptions": {
"baseUrl": ".",
"jsx": "react",
"paths": {
"Pages/*": ["./src/pages/*"],
"Components/*": ["./src/components/*"],
"Utils/*": ["./src/utils/*"],
"Services/*": ["./src/services/*"]
}
@samelm
samelm / launch.json
Last active July 22, 2019 07:51
VSCode + PHP + XDebug + Docker
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceFolder}/lumen"
@samelm
samelm / .gitconfig
Last active January 12, 2018 11:01
[user]
name = Vladislav Samatov
email = <place email>
[core]
filemode = false
[color]
ui = true
@samelm
samelm / prettier-cli.md
Created October 18, 2017 09:41
CLI prettier

prettier --single-quote --trailing-comma none --print-width 120 --no-semi --write

@samelm
samelm / alpha.php
Created October 19, 2016 07:52
Alphabet associative array
<?php
$result = [];
foreach ($array as $item) {
$letter = mb_strtoupper(mb_substr($item, 0, 1));
$result[$letter][] = $item;
}
?>
@samelm
samelm / declension_ru.php
Last active January 12, 2018 11:03
Determination declension words
<?php
function declension($num, $words)
{
$num = $num % 100;
if ($num > 19) {
$num = $num % 10;
}
switch ($num) {
case 1: {
return($words[0]);