Skip to content

Instantly share code, notes, and snippets.

View stepanselyuk's full-sized avatar

Stepan Seliuk stepanselyuk

View GitHub Profile
@stepanselyuk
stepanselyuk / TwitterCldrAsset.php
Created September 1, 2014 13:17
TwitterCldrAsset Yii2
<?php
/**
* Created by PhpStorm.
* Author: Stepan Seliuk <[email protected]>
* Date: 31/08/14
* Time: 19:45
*/
namespace app\assets;
@stepanselyuk
stepanselyuk / functions.common.js
Created September 1, 2014 13:16
isEmptyObject and matchRecursiveRegExp
MyApp.CommonFunctionsModule.isEmptyObject = function ( obj ) {
var hasOwnProperty = Object.prototype.hasOwnProperty;
// null and undefined are "empty"
if ( obj == null ) return true;
// Assume if it has a length property with a non-zero value
// that that property is correct.
if ( obj.length > 0 ) return false;
@stepanselyuk
stepanselyuk / myapp.tt.js
Created September 1, 2014 13:13
Yii::t javascript version
/**
* Created by PhpStorm.
* Author: Stepan Seliuk <[email protected]>
* Date: 30/08/14
* Time: 20:20
*/
if ( typeof window.MyApp === 'undefined' ) window.MyApp = {};
MyApp.ttLib = {
.dropdown-submenu {
position: relative;
& > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;