This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WordPress Development | |
# An custom container extended with development tools | |
# | |
# Usage: docker build . | |
# docker build --build-arg VERSION=4.9 . | |
# docker build --build-arg USERID=$(id -u) . | |
ARG VERSION=latest | |
FROM wordpress:$VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Directive to stick an element where it is | |
* when the scroll should pass him instead | |
* | |
* Just copy and paste this code inside your app | |
* main script before Vue is initialized and you | |
* have access to the directive as v-scroll-fixed | |
* | |
* @version 0.1.0 | |
* @author Filippo b4dnewz Conti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The interface from which to take the address and subnet | |
interface=${1:-"wlan0"} | |
# Get the nmap scan flags from second argument that must be enclosed with quotes | |
scanFlags=${2:-"-n -sn"} | |
# The full ipv4 address with subnet | |
fullAddr=$(ip addr show $interface | grep -w inet | awk '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc filter | |
# @name app.filter:inArray | |
# @description Angular filter to include items that belong to a given array | |
# by array element value or optionally by object property value. | |
# # inArray | |
### | |
angular.module 'app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sass-Ready media queries | |
* Here there are some presets of useful | |
* media queries breakpoints for various devices | |
* Usage: @media #{variable-name} { } | |
* and it will compile to: @media variable-name { } | |
* | |
*/ | |
// Devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc directive | |
# @name app.directive:ngLoad | |
# @description Angular directive to fire callback on element load. | |
# # ngLoad | |
### | |
angular.module 'app' | |
.directive 'ngLoad', ($parse) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc filter | |
# @name app.filter:notInArray | |
# @description Angular filter to exclude items that belong to a given array. | |
# # notInArray | |
### | |
angular.module 'app' | |
.filter 'notInArray', ($filter) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc filter | |
# @name app.filter:limitWords | |
# @description Angular filter to limit string based on words count. | |
# # limitWords | |
### | |
angular.module 'app' | |
.filter 'limitWords', -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc directive | |
# @name app.directive:ngMaxwords | |
# @description Angular directive to validate input based on maximum words length. | |
# # ngMaxwords | |
### | |
angular.module 'app' | |
.directive 'ngMaxwords', -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
###* | |
# @ngdoc directive | |
# @name app.directive:ngMinwords | |
# @description Angular directive to validate input based on minimum words length. | |
# # ngMinwords | |
### | |
angular.module 'app' | |
.directive 'ngMinwords', -> |