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 | |
/** | |
* based on https://gist.github.com/sudarshann/66c55e48f1e36fb5412261d869976dc7 | |
* | |
* sorry for german wordings inside! | |
*/ | |
class AndrekellingthemeAcfValidateStaffelpreis { | |
public function __construct() { | |
add_filter('acf/validate_value/name=prices', [$this, 'acf_validate_staffelpreis'], 10, 4); | |
} |
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
isMouseUser: function() { | |
// just presumpt that an IE11 user is a mouse user | |
var isIE11 = !!window.msCrypto; | |
return (matchMedia('(pointer:fine)').matches || isIE11); | |
}, |
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
'use strict'; | |
const gulp = require('gulp'); | |
const minifycss = require('gulp-clean-css'); | |
const concat = require('gulp-concat'); | |
const autoprefixer = require('gulp-autoprefixer'); | |
const browserSync = require('browser-sync').create(); | |
const sass = require('gulp-sass'); | |
const browserify = require('browserify'); | |
const imagemin = require('gulp-imagemin'); | |
const newer = require('gulp-newer'); |
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
.nested-item { | |
$this: &; | |
&__wrapper { | |
display: flex; | |
} | |
&__title { | |
padding-bottom: 10px; | |
} |
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
// initialise example | |
import randomImage from './module/randomImage'; | |
randomImage(); |
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
# other fine brew commands regarding mysql service | |
mysql.server start | |
mysql.server stop | |
# don't really get the difference between before commands | |
# https://stackoverflow.com/questions/43418955/difference-between-brew-services-start-mysql-and-mysql-server-start | |
brew services start [email protected] | |
brew services stop [email protected] |
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
// Detect objectFit support | |
// set full size img to selected container as background | |
// especially for IE11 | |
module.exports = () => { | |
if ('objectFit' in document.documentElement.style === false) { | |
// assign HTMLCollection with parents of images with objectFit to variable | |
const container = document.getElementsByClassName('js-sliderImg'); | |
// Loop through HTMLCollection |
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
HOMEBREW_VERSION: 2.0.3 | |
ORIGIN: https://github.com/Homebrew/brew.git | |
HEAD: 6865aee729ebc28dfa4af6fdbaeec297df0ac34c | |
Last commit: 2 days ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: 7149a5627db44fcbdcc4eb38c4ef90748f85c5b9 | |
Core tap last commit: 17 minutes ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.Q7rQX3M3R1/org.macosforge.xquartz:0 | |
HOMEBREW_LOGS: /Users/mac/Library/Logs/Homebrew |
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 | |
// fetch XML doc from URL and ecnode to json file in build dir | |
$jobsUrl = "https://xml-source"; | |
$fileName = "jobs.json"; | |
$fileDist = __DIR__."/../build/".$fileName; | |
function get_content($URL){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_URL, $URL); |
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
var timeout; | |
window.addEventListener('scroll', function () { | |
// If there's a timer, cancel it | |
if (timeout) { | |
window.cancelAnimationFrame(timeout); | |
} | |
timeout = window.requestAnimationFrame(function () { |
NewerOlder