Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Nikita Dudnik Nek

🎯
Focusing
Block or report user

Report or block Nek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View countup-and-countdown.markdown

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 Jan 2, 2019
JS support in Emacs
View eslint.json
// 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"
],
View bash_to_fish.txt
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 Dec 29, 2018
stuff to install
View stuff.txt
/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
View init.el
(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."
View bootstrap.sh
/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 Jan 4, 2018
Dot files
View .emacs
(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."
View keybase.md

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 Dec 21, 2017
Shell tricks
View shell.md

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
My .spacemacs files
View .spacemacs
;; -*- 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
You can’t perform that action at this time.