Skip to content

Instantly share code, notes, and snippets.

@kvetis
kvetis / node-cookie-rewrite-proxy.js
Last active August 22, 2022 04:27
node-http-proxy rewrite cookie domain
@kvetis
kvetis / collect_countries.rb
Created June 1, 2016 13:29 — forked from igneus/collect_countries.rb
Country names harvested from the "countries" Ruby gem (https://github.com/hexorx/countries)
require 'countries'
require 'json'
require 'active_support'
require 'sort_alphabetical'
lang = ARGV[0] || 'cs'
data = ISO3166::Country
.all
.collect {|c| {name: c.translations[lang], code: c.alpha2} }
@kvetis
kvetis / README.md
Last active November 19, 2015 15:46
Disable scroll to top on md-virtual-repeat by using this directive.

Angular Material v 1.0.0 currently does not support an option not to scroll to top when using md-virtual-repeat when items are removed. This directive is a quick fix that overrides default behaviour. Usage:

<md-virtual-repeat-container>
    <div md-virtual-repeat="item in items" prevent-scroll>
    </div>
</md-virtual-repeat-container>