Skip to content

Instantly share code, notes, and snippets.

View catindev's full-sized avatar
🐢
thinktank

Vladimir catindev

🐢
thinktank
View GitHub Profile
@catindev
catindev / reset-element.css
Created January 22, 2016 19:17
Reset element styles
.reset {
animation : none;
animation-delay : 0;
animation-direction : normal;
animation-duration : 0;
animation-fill-mode : none;
animation-iteration-count : 1;
animation-name : none;
animation-play-state : running;
animation-timing-function : ease;
@catindev
catindev / redux_egghead_notes.md
Created January 4, 2016 17:30 — forked from diegoconcha/redux_egghead_notes.md
Redux Egghead.io Notes

###Redux Egghead Video Notes###

####Introduction:#### Managing state in an application is critical, and is often done haphazardly. Redux provides a state container for JavaScript applications that will help your applications behave consistently.

Redux is an evolution of the ideas presented by Facebook's Flux, avoiding the complexity found in Flux by looking to how applications are built with the Elm language.

####1st principle of Redux:#### Everything that changes in your application including the data and ui options is contained in a single object called the state tree

@catindev
catindev / get-watchers.js
Created October 21, 2015 22:41 — forked from kentcdodds/get-watchers.js
Get Watchers of element and its children
function getWatchers(root) {
root = angular.element(root || document.documentElement);
var watcherCount = 0;
function getElemWatchers(element) {
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope);
var scopeWatchers = getWatchersFromScope(element.data().$scope);
var watchers = scopeWatchers.concat(isolateWatchers);
angular.forEach(element.children(), function (childElement) {
watchers = watchers.concat(getElemWatchers(angular.element(childElement)));
@catindev
catindev / gist:2414ef26b7ed96615a50
Last active August 31, 2015 11:34
remove transitions while preloading
/* class for preloading */
.preload * {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
}
function getGet(name) {
try {
return decodeURIComponent(new RegExp(name + "=([^&#=]*)").exec(window.location.search)[1]);
} catch (e) {
return null;
}
};
@catindev
catindev / gist:8702a38a6b157ac37c41
Last active August 29, 2015 14:12
horizontal centered menu
.nav {
margin: 0 auto;
text-align: center;
padding: 15px 0;
font-size: 12px;
}
.ul {
list-style: none;
margin: 0;
@catindev
catindev / gist:810c6c112b253a9c276e
Created December 27, 2014 15:46
Актуальные котировки валют для сайта
https://query.yahooapis.com/v1/public/yql?q=select+*+from+yahoo.finance.xchange+where+pair+=+%22USDRUB,EURRUB%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys