Skip to content

Instantly share code, notes, and snippets.

@pvlv
pvlv / private_fork.md
Created May 18, 2025 19:05 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

// @flow strict-local
import React, {
type Node,
type AbstractComponent,
type Element,
useRef,
useMemo,
useCallback,
useEffect,
:root {
--clear-blue: #1284ff;
--dodger-blue: #3194ff;
--bright-blue: #007aff;
--scarlet: #d0021b;
--green: #33aa22;
--light-sage: #d5efcb;
--white-two: #f2efeb;
--white: #f9f7f4;
--white-three: #dddddd;
@pvlv
pvlv / error1.md
Created May 19, 2019 09:48
VK api

Ошибка в диалоге

  object:
   { date: 1558258457,
     from_id: 1001201,
     id: 107,
     out: 0,
     peer_id: 1001201,
 text: 'update message',
@pvlv
pvlv / vim-cheat-sheet.md
Last active March 11, 2019 08:56 — forked from ummahusla/vim-cheat-sheet.md
Vim Cheat Sheet

Modes

Vim has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for "colon" commands which execute when you press the ruturn key.

Quitting

  • :x Exit, saving changes
  • :q Exit as long as there have been no changes
  • ZZ Exit and save changes if any have been made
  • :q! Exit and ignore any changes

Inserting Text

@pvlv
pvlv / gist:128ec5741f6b695f4c326a5ccffab7a4
Created June 3, 2018 15:39 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@pvlv
pvlv / Путь HTML.md
Created May 2, 2018 15:13 — forked from codedokode/Путь HTML.md
Путь HTML/CSS

Путь HTML/CSS

Это список ссылок и заданий, которые помогут тебе изучить языки HTML/CSS на достаточном уровне. HTML и CSS используется для верстки (создания) веб-страничек — тех самых, которые ты видишь в браузере когда открываешь какой-то сайт. Задания несложные и надо решить их все.

Станешь ли ты полноценным верстальщиком, пройдя этот путь? Скорее нет, чем да. С одной стороны, ты научишься верстать веб-страницы, с другой стороны от верстальщиков в большинстве случаев требуют дополнительно знать язык программирования Javascript (и популярные библиотеки вроде jQuery, jQuery UI). Так что воспринимай это как первую (короткую) половину пути.

Время, требуемое на изучение материала и решение всех заданий зависит от тебя, ориентировочно это занимает от 2 до 8 недель. В конце тебя ждет главное задание — сверстать страницу из макета.

Что такое HTML

@pvlv
pvlv / tmux-cheatsheet.markdown
Created April 8, 2018 10:38 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pvlv
pvlv / collect_form_data.js
Created March 21, 2018 07:21 — forked from everdimension/collect_form_data.js
A way to collect form data without `FormData` api.
// https://medium.com/@everdimension/how-to-handle-forms-with-just-react-ac066c48bd4f
handleSubmit(event) {
const form = event.target;
const data = {}
for (let element of form.elements) {
if (element.tagName === 'BUTTON') { continue; }
data[element.name] = element.value;
}
}

Keybase proof

I hereby claim:

  • I am pvlv on github.
  • I am pvlv (https://keybase.io/pvlv) on keybase.
  • I have a public key whose fingerprint is 5527 1002 D1C5 785E BA84 A41F 0741 CFE9 3CEF 1092

To claim this, I am signing this object: