Skip to content

Instantly share code, notes, and snippets.

View kapooostin's full-sized avatar

Vladimir Kapustin kapooostin

View GitHub Profile
@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');

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors

@kapooostin
kapooostin / gist:1252970297db2d8ccf50
Last active August 29, 2015 14:27 — forked from taylorotwell/gist:db67dd369b00022850b4
Mac Yosemite Dev Machine Setup

XCode

  • Install XCode from App Store.
  • Open XCode and agree to terms and conditions.

XCode CLI Tools

  • xcode-select --install

Install Homebrew

@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;