Skip to content

Instantly share code, notes, and snippets.

View Nek's full-sized avatar
🏠
Working from home

Nikita Dudnik Nek

🏠
Working from home
View GitHub Profile
@Nek
Nek / countup-and-countdown.markdown
Created December 18, 2018 16:57
Countup and Countdown

Countup and Countdown

A countdown to a specific date that animates up from 0 and then starts the countdown.

A Pen by Nikita Dudnik on CodePen.

License.

@Nek
Nek / eslint.json
Last active January 2, 2019 10:05
JS support in Emacs
// Part of package.json with eslint configuration I use.
// You'll need eslint-plugin-prettier in your dev dependencies
// and probably a bunch of other things. Eslint will complain.
// Just install what it asks for.
"eslintConfig": {
"extends": "react-app",
"plugins": [
"prettier"
],
@Nek
Nek / bash_to_fish.txt
Created March 21, 2018 10:20
Bash to Fish
setting variables
bash: var=value
fish: set var value
function arguments
bash: "$@"
fish: $argv
function local variables
bash: local var
@Nek
Nek / stuff.txt
Last active December 29, 2018 08:16
stuff to install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cask
brew cask install alfred
brew cask install karabiner-elements
brew cask install gitup
brew cask install telegram
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install omnifocus
brew cask install selfcontrol
@Nek
Nek / init.el
Last active March 26, 2018 07:12
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")
("sunrise" . "http://joseito.republika.pl/sunrise-commander/")))
(package-initialize)
(defun package-install-if-not (package)
"Install PACKAGE if it's not installed yet."
@Nek
Nek / bootstrap.sh
Last active December 19, 2017 21:10
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install fish
brew install wget
brew install gnutls
brew install git
brew install jq
brew install rlwrap
# clojure
brew install leiningen
# js stuff
@Nek
Nek / .emacs
Last active January 4, 2018 14:46
Dot files
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")
("sunrise" . "http://joseito.republika.pl/sunrise-commander/")))
(package-initialize)
(defun package-install-if-not (package)
"Install PACKAGE if it's not installed yet."
@Nek
Nek / keybase.md
Created October 10, 2017 20:35
keybase

Keybase proof

I hereby claim:

  • I am nek on github.
  • I am dudnik (https://keybase.io/dudnik) on keybase.
  • I have a public key ASC57RR_69F8qvhhY8yuthFpZnCOqbag8o0WinDppaNMmgo

To claim this, I am signing this object:

@Nek
Nek / shell.md
Last active December 21, 2017 16:32
Shell tricks

Files changed in current branch relatively to some other branch:

git checkout <notMainDev>
git diff --name-only <mainDev>

Take .js and .jsx file names from log and feed them to prettier rewiting them with output:

@Nek
Nek / .spacemacs
Last active May 17, 2017 16:34
My .spacemacs files
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory