- blade.xml: syntax highlighting for bgaze/bootstrap-form custom directives.
- blade-bootstrap-form.xml: live templates for bgaze/bootstrap-form custom directives.
- blade-default.xml: live templates for common Blade's default directives.
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
// Install and import through2 | |
// npm install --save-dev through2 | |
const through = require('through2'); | |
// Declare the function | |
var myfn = function () { | |
return through.obj(function (input, encoding, callback) { | |
// Get current stream content. | |
let content = String(input.contents); |
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
(function (root, factory) { | |
if (typeof define === "function" && define.amd) { | |
define(["jquery"], function (jQuery) { | |
return (root.myfn = factory(jQuery)); | |
}); | |
} else if (typeof module === "object" && module.exports) { | |
module.exports = (root.myfn = factory(require("jquery"))); | |
} else { | |
root.myfn = factory(root.jQuery); | |
} |
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
################################################################################ | |
# INSTALLATION # | |
# # | |
# Simply save this file somewhere on your computer then import it into # | |
# your "~/.bashrc" file : # | |
# # | |
# if [ -f ~/path/to/bash-aliases ]; then # | |
# . ~/path/to/bash-aliases # | |
# fi # | |
# # |
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
const windowSize = () => { | |
let body = document.getElementsByTagName('body')[0]; | |
return { | |
width: window.innerWidth || document.documentElement.clientWidth || body.clientWidth, | |
height: window.innerHeight || document.documentElement.clientHeight || body.clientHeight | |
}; | |
}; |