Skip to content

Instantly share code, notes, and snippets.

View nick-shmyrev's full-sized avatar

Nick Shmyrev nick-shmyrev

View GitHub Profile
/*
Please build a function that takes in the array of edges,
construct the entire tree and return the root node 1.
Some important points to note:
• 1 is the root node
• There is no duplicated edge
• There is no isolated node
• Thus N nodes, n-1 edges
• Positions in the tuple do not indicate direction
@nick-shmyrev
nick-shmyrev / webstorm_react_cheatsheet.md
Last active January 14, 2021 17:08
WebStorm React Templates cheat sheet

Components

React Class Component - rcc

import React, { Component } from 'react';

class $TM_FILENAME_BASE$ extends Component {
 render() {
  return (
   <div>
@nick-shmyrev
nick-shmyrev / nvidia-fan-controller.sh
Last active May 17, 2021 03:17
nvidia fan control bash script
#!/bin/bash
# Settings
readonly MIN_SPEED=27
readonly MAX_SPEED=100
readonly HIGH_TEMP=87
readonly NORMAL_TEMP=35
@nick-shmyrev
nick-shmyrev / Atom One Dark.icls
Created May 15, 2018 19:37
PhpStorm Atom One Dark color scheme
<scheme name="Atom One Dark" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.25" />
<metaInfo>
<property name="created">2018-05-15T15:31:34</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2018.1.3.0.0</property>
<property name="modified">2018-05-15T15:31:43</property>
<property name="originalScheme">_@user_Atom One Dark</property>
</metaInfo>
<option name="LINE_SPACING" value="1.2" />
@nick-shmyrev
nick-shmyrev / jsonview-dark-atom-like-theme.css
Last active September 11, 2017 23:20
JSONView Dark Atom-like Theme
body {
white-space: pre;
font-family: monaco, Consolas, Menlo, monospace;
color: #ced8e8;
background: #282c34;
font-size: 12px;
line-height: 1.5m;
}
.property {