Skip to content

Instantly share code, notes, and snippets.

View kapooostin's full-sized avatar

Vladimir Kapustin kapooostin

View GitHub Profile
@kapooostin
kapooostin / dabblet.css
Created January 4, 2012 19:54 — forked from kizu/dabblet.css
Centered heading with rules
/* Centered heading with rules */
h1 {
position: relative;
overflow: hidden;
white-space: nowrap;
text-align: center;
text-overflow: ellipsis;
font: 2.6em/1.1 Georgia;
padding: .2em 0;
@kapooostin
kapooostin / dabblet.css
Created March 24, 2012 06:15 — forked from anonymous/dabblet.css
Flexible multiline form with generated line breaks
/**
* Flexible multiline form with generated line breaks
*/
form {
width: 290px;
padding: 5px 218px 5px 5px;
border: 3px #ccc double;
text-align: right;
line-height: 2;
@kapooostin
kapooostin / dabblet.css
Created March 24, 2012 06:15
Flexible multiline form with generated line breaks
/**
* Flexible multiline form with generated line breaks
*/
form {
width: 290px;
padding: 5px 218px 5px 5px;
border: 3px #ccc double;
text-align: right;
line-height: 2;
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <[email protected]>
/**
* Thanks to @philsturgeon for pointing this package
* and Filipe Dobreira "https://github.com/filp" for creating it ^^
* Github : https://github.com/filp/whoops
* How to:
* Step 1 : Setup composer for Laravel 3
* Step 2 : Add this code to your application/start.php or anywhere u like
* as long its after laravel registers its own error handlers
* so NOT in : index.php, paths.php or laravel/**
*
@echo off
@rem \"%stPath%\" : Path to Sublime Text installation dir.
@rem %entryName%: Key name for the registry entry.
@rem %menuText% : Context menu text. Set your preferred menu text (e.g.: translate to your language).
@rem %entryNameAsAdmin%: Key name for the registry entry.
@rem %menuTextAsAdmin% : Context menu text. Set your preferred menu text for administrator privilege (e.g.: translate to your language).
SET stPath=%~dp0sublime_text.exe
SET entryName=Sublime Text
SET menuText=Open with Sublime Text
var MyApp = angular.module('MyApp');
MyApp.factory('msgBus', ['$rootScope', function($rootScope) {
var msgBus = {};
msgBus.emitMsg = function(msg, data) {
data = data || {};
$rootScope.$emit(msg, data);
};
msgBus.onMsg = function(msg, func, scope) {
var unbind = $rootScope.$on(msg, func);
if (scope) {
@kapooostin
kapooostin / _nested-grids-mixins.less
Last active August 29, 2015 14:03
Arbitrary nested grids in Bootstrap
// Generate the extra small columns
.make-xs-column(@columns; @gutter: @grid-gutter-width; @columns-total: @grid-columns) {
position: relative;
float: left;
width: percentage((@columns / @columns-total));
min-height: 1px;
padding-left: (@gutter / 2);
padding-right: (@gutter / 2);
}
.make-xs-column-offset(@columns; @columns-total: @grid-columns) {
<?php
namespace Codeception\Module;
use Codeception\Util\Framework;
use Codeception\TestCase;
use Codeception\Util\Connector\Universal;
use Codeception\Configuration;
use Symfony\Component\BrowserKit\Response;
use Laravel\Routing\Router;
@kapooostin
kapooostin / foo.js
Last active August 29, 2015 14:13 — forked from benhowdle89/foo.js
var _vent = require('./vent.js').shared();
_vent.trigger('blah');