Skip to content

Instantly share code, notes, and snippets.

@RoyalHunt
RoyalHunt / speckyboy.html
Created February 21, 2017 11:47
[icons] Огромная подборка из 50 бесплатных наборов CSS, SVG, PSD-иконок за 2016 год. #tags: icons
https://speckyboy.com/top-50-free-icon-sets-2016/
@RoyalHunt
RoyalHunt / Effects.html
Created February 21, 2017 11:50
[scrolling] Подборка статей с примерами реализации различных эффектов при скролле страницы: параллакс, анимации и многое другое. #tags: scrollingEffects
http://thenewcode.com/1089/Web-Developer-Reading-List-Scrolling-Effects
# interactive update of global packages
npm-check -u -g
# interactive update for a project you are working on
npm-check -u
@RoyalHunt
RoyalHunt / .bashrc
Last active July 20, 2017 07:34
powerlines for Bash
~/.bashrc
# For Terminix and Powerline
if [[ $TERMINIX_ID ]]; then
. /etc/profile.d/vte.sh
fi
if [ -f `which powerline-daemon` ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
componentDidMount() {
this.updateDimensions()
window.addEventListener('resize', this.updateDimensions)
}
componentWillUnmount() {
window.removeEventListener('resize', this.updateDimensions)
}
updateDimensions = () => {
@RoyalHunt
RoyalHunt / .gitlab-ci.yml
Created October 24, 2017 08:02
.gitlab-ci.yml example
image: "node:6.9"
variables:
BUNDLE_CACHE: "node_modules/"
cache:
untracked: false
paths:
- ~/.npm/
- node_modules/
stages:
- test
@RoyalHunt
RoyalHunt / gist:b07ea0c71d4c9adf1810f9e30717cf22
Created April 2, 2018 20:39
update all documents in mongodb
const test = await User.find()
test.forEach(async (doc) => {
const id = nanoid()
await User.update({ _id: doc._id }, { $set: { id } })
})
@RoyalHunt
RoyalHunt / gist:95fc9949d8cdbba4aaba6d6354720478
Last active April 27, 2018 12:32
IOS input fix with user-select: none
/*
This is for demonstration purposes. Ideally, you should never use the star selector.
I recommend that you use this early on in your development, and then once you've established
your HTML element palette, go back and replace * with a comma-separated list of your
tag names. Additionally, the !important shouldn't have to be used, but I'm leaving it here
because some enterprising goons will probably copy and paste this directly into their project -
the !important will ensure these settings override other attempts that were either never
deleted or are part of an installed CSS file the user is unaware of.
*/
* {
@RoyalHunt
RoyalHunt / myscript.sh
Created May 18, 2018 21:40 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"