Skip to content

Instantly share code, notes, and snippets.

View culttm's full-sized avatar
🇺🇦

Dmytro Kozlov culttm

🇺🇦
View GitHub Profile
@umidjons
umidjons / install-laravel-via-composer.bat
Created February 3, 2014 11:36
Installing laravel in OpenServer via Composer
cd C:\OpenServer\domains
mkdir lara.loc
composer create-project laravel/laravel lara.loc --prefer-dist
# after successfull installing try to open http://lara.loc/public/ on browser
@thers
thers / anyway.js
Last active March 10, 2016 08:43
When you need to initialize jquery plugin when using AngularJS (or something else which dinamically includes html). In case of AngularJS i was needed to render user-generated articales which contains HTML code inside of AngularJS app using $sce.trustAsHtml(), but the thing is about directives dont work inside this HTML and it shouldn't in fact (…
/**
* Executes given callback only if some element found by given selector
*
* @param {String} selector
* @param {Function} cb
*/
window.anyway = function (selector, cb) {
var
interval = setInterval(function () {
var el = $(selector);