Skip to content

Instantly share code, notes, and snippets.

View VojtechBartos's full-sized avatar
🏠
Working from home

Vojta Bartoš VojtechBartos

🏠
Working from home
View GitHub Profile
myApp = angular.module 'myApp', []
myApp.service 'FlashMessage', ($rootScope) ->
smsgw.service 'FlashMessage', ($rootScope) ->
Flash = () ->
$rootScope.flashes = []
$rootScope.$on '$routeChangeSuccess', () ->
flashes = []
for flash in $rootScope.flashes
@VojtechBartos
VojtechBartos / delete.php
Created November 10, 2012 15:59 — forked from hrach/delete.php
Rekurzivní smazání adresáře v Nette
<?php
$dirContent = Finder::find('*')->from($directory)->childFirst();
foreach ($dirContent as $file) {
if ($file->isDir())
@rmdir($file->getPathname());
else
@unlink($file->getPathname());
}