This file contains hidden or 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
<?php | |
/** | |
* Debug function | |
* | |
* @param mixed $data The data, that should be debugged. | |
* @param bool $dump (default: false) Show var_dump output. | |
* @param bool $console (default: false) Print debug message to the console. | |
* @return void | |
*/ | |
function debug($data, $dump = false, $console = false) { |
This file contains hidden or 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
/* | |
* i-- | |
* Range: 9…0 | |
* After Loop: -1 | |
* Decrementation: After while condition check; before loop body. | |
*/ | |
var i = 10; | |
while (i--) {…} | |
/* |
This file contains hidden or 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
// I am using flat variables, following the SUIT naming convention. Every | |
// variable should be available in the global space for reference of single | |
// values, whithout the need to rely on mixins. | |
// | |
// I know this can be done with maps and mixins, but that would require to | |
// ignore the variable naming scheme, I use for every other variable in the | |
// project. | |
$--bpMobileRangeMax: 334px; | |
$--bpMobileRangeMin: null; |
This file contains hidden or 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
/// Breakpoint Mixin | |
/// | |
/// @author Henning Pohlmeyer | |
/// | |
/// @content | |
/// | |
/// @param {Number} $min - The minimum breakpoint range | |
/// @param {Number} $max [null] - The maximum breakpoint range | |
/// @param {Number} $ppi [null] - Exclude screens below a screen density of $ppi | |
/// @param {String} $type [screen] - Add a media type other than screen (e.g. print) |
This file contains hidden or 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
# Hackers often base64 encode malicious code to make it | |
# harder to find. Try these commands on your sites root folder | |
# to find base64 occurences. Look out for large code blocks | |
# in the output and check the code. | |
# You can search in php files only, but if the site is not too | |
# huge, I would recommend to search through all your files. | |
# 1. option | |
# Use this option for Linux based systems, where grep -r is | |
# available. The use command are: |
This file contains hidden or 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
[A-Za-zÀ-ÖØ-öø-ÿ] |
This file contains hidden or 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
ffmpeg -i {{INPUT VIDEO}} -movflags faststart -an -vf scale=976:-2 -pix_fmt yuv420p {{OUTPUT FILE}} |
This file contains hidden or 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
// ============================================================================= | |
// POINT CALCULATION HELPER FUNCTIONS | |
// | |
// This is a collection of various mathematical helper functions, for manipula- | |
// ting points and measuring angles and distances. | |
// | |
// Inside a function, no other function form the list is used, to ensure you can | |
// use the indipendently. | |
// ============================================================================= |
OlderNewer