Skip to content

Instantly share code, notes, and snippets.

View egoholic's full-sized avatar

Volodymyr Melnyk egoholic

View GitHub Profile
@ebidel
ebidel / fancy-tabs-demo.html
Last active February 18, 2025 15:38
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
<script src="https://unpkg.com/@webcomponents/custom-elements"></script>
<style>
body {
margin: 0;
}
/* Style the element from the outside */
/*
fancy-tabs {
margin-bottom: 32px;
@staltz
staltz / introrx.md
Last active July 7, 2025 10:24
The introduction to Reactive Programming you've been missing
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 2, 2025 22:26
A badass list of frontend development resources I collected over time.
@maxnik
maxnik / gist:3698496
Created September 11, 2012 13:33
Data Context Interaction (DCI) пример с TransferringMoney
# Я решил оставить его исходный интерфейс для класса Account, будем считать,
# что я получил это код от предшественника и теперь мне надо реализовать
# перевод денег с одно счета на другой:
class Account
def decrease_balance(amount); end
def increase_balance(amount); end
def balance; end
def update_log(message, amount); end
def self.find(id); end
@the-teacher
the-teacher / index.html
Created September 9, 2012 16:52
Example of building of custom clandars with TheTime.js framework. TheTime.js - Date object wrapper for Node.js and Browser JS. TheTime.js Makes work with JS Date object easier and more humane.
<div class='calendar_modern' id='calendar'></div>
<div class='time_list'>
<p>
<b>Click on day for select.</b>
</p>
<p>
<b>Second click for unselect.</b>
</p>
<p>List of selected days:</p>

Don't use MongoDB

I've kept quiet for awhile for various political reasons, but I now feel a kind of social responsibility to deter people from banking their business on MongoDB.

Our team did serious load on MongoDB on a large (10s of millions of users, high profile company) userbase, expecting, from early good experiences, that the long-term scalability benefits touted by 10gen

@mikhailov
mikhailov / 0. nginx_setup.sh
Last active June 6, 2025 19:19
NGINX+SPDY with Unicorn. True Zero-Downtime unless migrations. Best practices.
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@MatthewEppelsheimer
MatthewEppelsheimer / breakpoints.css
Created January 8, 2012 06:17
Responsive Break Point Media Query Boilerplate
// Mobile First
@media screen and (min-width: 321px) { // iPhone landscape
}
@media screen and (min-width: 481px) { // iPad portrait
}
@showell
showell / scoping.coffee
Created December 22, 2011 22:20
scoping in CoffeeScript
# This code demonstrates how CS scoping works within a file. Scroll down to the end to
# see how cross-file scoping works.
# Here are the rules.
#
# Scoping is all lexical. Read the file from top to bottom to determine variable scopes.
#
# 1) When you encounter any variable in the top-level nesting, its scope is top level.
# 2) Inside a function, if you encounter a variable name that still exists in an outer scope, then that
# variable name refers to the variable in the outer scope. (This is "closure".)