Skip to content

Instantly share code, notes, and snippets.

View tsvetomirnik's full-sized avatar

Tsvetomir Nikolov tsvetomirnik

View GitHub Profile
@tsvetomirnik
tsvetomirnik / ngx-projection-and-elements-querying.md
Last active August 25, 2019 15:27
NGX Projection and Elements Querying
@tsvetomirnik
tsvetomirnik / es6-training-notes.md
Created October 25, 2018 15:27
ES6 Training Notes
/**
* Converts JSON translation file into 2 characters based string of blocks and spaces. Makes easier to spot translated places.
* Usage:
* node block-transl en.json ja.json
* Example:
* Input: { "LOREM": "Lorem ipsum dolor" }
* Output: { "LOREM": "▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄" }
*/
const fs = require('fs');
const path = require('path');
@tsvetomirnik
tsvetomirnik / LICENSE.txt
Created April 12, 2017 13:11 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@tsvetomirnik
tsvetomirnik / reset.scss
Created December 31, 2016 10:05 — forked from HamptonMakes/reset.scss
Reset SCSS
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
@tsvetomirnik
tsvetomirnik / README.md
Created November 3, 2016 11:12 — forked from hofmannsven/README.md
My simply Git Cheatsheet
function Plugin( element, options ) {
this.$element = $(element);
this.$sections = this.$element.find('ul').hide();
this.init();
}
Plugin.prototype.init = function () {
var self = this;
this.$element.click(function(){
self.handleAccordionClick();
@tsvetomirnik
tsvetomirnik / introrx.md
Created May 8, 2016 21:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@tsvetomirnik
tsvetomirnik / promised-callback.js
Last active January 15, 2016 10:46
Don't worry about the callback anymore
/**
* Callback convention - with Promise support
* Inspired by "How to Become a Better Node.js Developer in 2016"
* {@link https://blog.risingstack.com/how-to-become-a-better-node-js-developer-in-2016/}
*/
/**
* Creates a new instance of Promise object that will notify your callback
* @param {function} callback Function that will be notified by the promse