Skip to content

Instantly share code, notes, and snippets.

@maztch
maztch / emmets
Created August 10, 2015 09:45
some emmet
//just some emmet lines to test it
//ul sample
ul>li{Item $}*4
//page header sample
#page>div.logo+ul#navigation>li*5>a{Item $}
//navbar sample
.navbar>ul>li*4>a[href=#]{link $}
@maztch
maztch / delete_by_prefix.sql
Last active August 29, 2015 14:25
mysql delete tables by prefix
SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' )
AS statement FROM information_schema.tables
WHERE table_name LIKE 'prefix_%';
@maztch
maztch / full-width
Last active August 29, 2015 14:25
angular full window width directive
'use strict';
//http://jsfiddle.net/maztch/efccbja5/7/
angular.module('app')
.directive('full', function($window) {
return({
restrict: 'A',
link: function ( $scope, element, attributes ) {
@maztch
maztch / read-more
Last active August 29, 2015 14:22
angular read-more directive
//this directive uses jquery...
angular.module('client').directive('readMore', function() {
return {
restrict: 'A',
transclude: true,
replace: true,
template: '<p></p>',
scope: {
moreText: '@',
lessText: '@',