Skip to content

Instantly share code, notes, and snippets.

View iaminstanceof's full-sized avatar
🐎
Equaling horses

Sergey Petrenko iaminstanceof

🐎
Equaling horses
View GitHub Profile
<style name="ToolbarTheme" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<!-- android:textColorPrimary is the color of the title text in the Toolbar -->
<item name="android:textColorPrimary">@android:color/holo_blue_light</item>
<!-- actionMenuTextColor is the color of the text of action (menu) items -->
<item name="actionMenuTextColor">@android:color/holo_green_light</item>
<!-- Tints the input fields like checkboxes and text fields -->
<item name="colorAccent">@color/cursorAccent</item>
<!-- Applies to views in their normal state. -->
<item name="colorControlNormal">@color/controlNormal</item>
<!-- Applies to views in their activated state (i.e checked or switches) -->
@iaminstanceof
iaminstanceof / cover-image.css
Created June 16, 2018 14:49
Cover image to element
.alligator-turtle {
object-fit: cover|scale-down;
width: 300px;
height: 337px;
}
@iaminstanceof
iaminstanceof / bins.js
Created April 17, 2018 06:25
PaymentToolbox.js
var i = {
424436: 'akbars',
424440: 'akbars',
424438: 'akbars',
424437: 'akbars',
424439: 'akbars',
677088: 'akbars',
410243: 'alfabank',
410244: 'alfabank',
410245: 'alfabank',
@iaminstanceof
iaminstanceof / gshadow.css
Created April 22, 2017 04:20
Great shadow too but slightly lighten
.stripe-shadow {
box-shadow: 0 50px 100px rgba(50,50,93,.1), 0 15px 35px rgba(50,50,93,.15), 0 5px 15px rgba(0,0,0,.1);
}
@iaminstanceof
iaminstanceof / great-shadow.css
Created April 21, 2017 13:06
Great card shadow (large & awesome)
.great-shadow {
box-shadow: 0 64px 64px 0 rgba(0,0,0,.1),
0 32px 32px 0 rgba(0,0,0,.1),
0 16px 16px 0 rgba(0,0,0,.1),
0 8px 8px 0 rgba(0,0,0,.1),
0 4px 4px 0 rgba(0,0,0,.1),
0 2px 2px 0 rgba(0,0,0,.1);
}
@iaminstanceof
iaminstanceof / fuc-js.php
Created April 21, 2017 03:58
PHP to JS cross-domain request proxy
<?php
/**
* fetch_url_contents - a simple js to php proxy function to get cross domain content.
*
* @author Artur Heinze
* @copyright (c) since 2016 Artur Heinze
* @license MIT - http://opensource.org/licenses/MIT
* @url https://github.com/aheinze/fetch_url_contents
*/
@iaminstanceof
iaminstanceof / fetch.js
Created April 20, 2017 22:58
Fetch JS polyfill
(function(self) {
'use strict';
if (self.fetch) {
return
}
var support = {
searchParams: 'URLSearchParams' in self,
iterable: 'Symbol' in self && 'iterator' in Symbol,
.shadow-sm-flat {
box-shadow: 0 4px 8px 0 rgba(150,150,150,.2);
}
@iaminstanceof
iaminstanceof / Megashadow.css
Created March 5, 2017 07:45
Perfect-rendered CSS shadow (very large)
.shadow-xlarge-bottom {
box-shadow: 0 64px 64px 0 rgba(0,0,0,.05),
0 32px 32px 0 rgba(0,0,0,.05),
0 16px 16px 0 rgba(0,0,0,.05),
0 8px 8px 0 rgba(0,0,0,.05),
0 4px 4px 0 rgba(0,0,0,.05),
0 2px 2px 0 rgba(0,0,0,.05);
}
@iaminstanceof
iaminstanceof / animationend-selector.js
Created February 19, 2017 03:03
JS Animation End Event name chooser
// Determine which animationend event is supported
function animationEndSelect() {
var t;
var el = document.createElement('fake');
var transitions = {
'transition':'animationend',
'OTransition':'oAnimationEnd',
'MozTransition':'animationend',
'WebkitTransition':'webkitAnimationEnd'
}