Skip to content

Instantly share code, notes, and snippets.

View mugukamil's full-sized avatar
🏠
Working from home

Kamil Mugutdinov mugukamil

🏠
Working from home
View GitHub Profile
@mugukamil
mugukamil / introrx.md
Created July 3, 2017 11:51 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@mugukamil
mugukamil / countries.json
Created August 11, 2016 11:01 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@mugukamil
mugukamil / usevm.md
Created June 3, 2016 15:13 — forked from fideloper/usevm.md
You should develop in a Virtual Machine

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

@mugukamil
mugukamil / autocomplete.html
Created June 1, 2016 00:10
autocomplete forms chrome firefox opera
<form method="post" id="usrForm">
<label for="name">Name</label>
<input type="text" id="name" name="name" autocomplete="name">
<label for="jobtitle">Job Title</label>
<input type="text" id="jobtitle" name="jobtitle" autocomplete="organization-title">
<label for="company">Organization</label>
<input type="text" id="company" name="company" autocomplete="organization">
<label for="tel">Telephone Number</label>
<input type="tel" id="tel" name="tel" autocomplete="home tel">
<label for="email">Email</label>
/*
* Динамическая сетка
* Внедряется подмешиванием DOM-узлу поведенческих классов: grid_col_3, grid_cell...
*/
.grid
box-sizing border-box
/*
* Генерирует стили для сетки
@mugukamil
mugukamil / twitter-follower.js
Created February 24, 2016 19:13
twitter-follower
javascript:var inputs = document.getElementsByClassName('user-actions-follow-button js-follow-btn follow-button btn');
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}
@mugukamil
mugukamil / Helvetica Neue stack
Created January 10, 2016 06:06 — forked from gpessia/Helvetica Neue stack
Helvetica Neue CSS font-family stack. Is there a web-safe Helvetica Neue CSS font-family stack? - See more at: http://rachaelmoore.name/posts/design/css/web-safe-helvetica-font-stack/#sthash.lt6rYYGz.dpuf
/**
* Helvetica Neue Normal (No Stretch)
*/
/* Helvetica Neue Black Font Stack */
.{font-family: "HelveticaNeueBlack", "HelveticaNeue-Black", "Helvetica Neue Black", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:800; font-stretch:normal;}
/* Helvetica Neue Heavy Font Stack */
.{font-family: "HelveticaNeueHeavy", "HelveticaNeue-Heavy", "Helvetica Neue Heavy", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:700; font-stretch:normal;}
@mugukamil
mugukamil / center-div.css
Created January 7, 2016 05:29
Centering a DIV of Unknown Width You can easily center a DIV by using margin:auto; property when you have mentioned its width in your CSS. But in case you wanted to center a DIV with unknown width, here is the code to do so :
.content {
margin: 0 auto 8px;
display: table;
}
.content div {
display: table-cell;
}
<!--[if IE]>
@mugukamil
mugukamil / bg-transparency.css
Created January 7, 2016 05:28
Background transparency Being able to set the transparency of the background without affecting the transparency of the foreground (the text) is quite handy. That’s why there’s rgba() in CSS (red, green, blue, alpha). IE is not yet supporting it, but we can use the gradient filter which does support transparency. In this case we don’t need the ac…
.rgba {
background-color: transparent;
background-color: rgba(200,200,200,0.8);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99dddddd,endColorstr=#99dddddd);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99dddddd,endColorstr=#99dddddd)";
}
@mugukamil
mugukamil / media.css
Created January 7, 2016 05:27
Hardboiled CSS3 Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {