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
window.onload = function () { | |
var datesCollection = document.getElementsByClassName("input-date"); | |
var dates = Array.from(datesCollection); | |
dates.forEach(function (date) { | |
new Cleave(date, { | |
date: true, | |
delimiter: '-', | |
datePattern: ['Y', 'm', 'd'] | |
}) |
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
var cleave = new Cleave('.phone-mask', { | |
// prefix: '+7 ', | |
numericOnly: true, | |
blocks: [0, 3, 3, 2, 2], | |
delimiters: ["+7 (", ") ", " ", "-", "-"] | |
}); |
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
-------------------- | |
---------------- | |
|^^^пиво^^\\|""\\_,_ | |
|___________||___|__|) | |
(@)(@)""*|(@)(@)**(@) |
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
insmod part_gpt | |
insmod fat | |
set root='hd0,gpt1' | |
if [ x$feature_platform_search_hint = xy ]; then | |
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 040D-E584 | |
else | |
search --no-floppy --fs-uuid --set=root 040D-E584 | |
fi | |
chainloader /EFI/Microsoft/Boot/bootmgfw.efi |
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
md "OptimizedJPEGS" | |
for %%i in (*.jpg) do "C:\Program Files (x86)\GnuWin32\bin\jpegtran.exe" -optimize -progressive -copy none "%%i" > "OptimizedJPEGS\%%i" |
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
<?php namespace Qwer\Asdf; | |
use System\Classes\PluginBase; | |
class Plugin extends PluginBase | |
{ | |
public function boot() | |
{ | |
//dump(\App::getFacadeApplication()['db.connection']->getPDO()); | |
// dump(base_path(), themes_path()); |
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
{set $index = 0} | |
{set $slider = json_decode($_modx->resource.slider, true)} | |
{foreach $slider as $row} | |
<div> | |
<img src="{$row.image | phpthumbon : 'w=1920&zc=0'}" title="{$row.heading}" alt="{$row.heading}"> | |
<a href="{$row.link}"> | |
{$row.content} | |
</a> | |
</div> |
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
<a href="{{ ''| page }}">Current page with current filter slugs</a> | |
<a href="{{ ''| page(false) }}">Current page without any filter slugs (except default value)</a> | |
<a href="{{ ''| page({ filter_slug:slug_var, filter_id:id_var }) }}">Current page with needle filter slugs</a> |
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 | |
echo Please specify MODX version: | |
read version | |
echo Downloading MODX $version... | |
wget https://modx.com/download/direct?id=modx-$version-pl.zip | |
unzip direct\?id\=modx-$version-pl.zip && rm direct\?id\=modx-$version-pl.zip |
NewerOlder