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
#!/usr/bin/env bash | |
set -euo pipefail | |
# Default values | |
light_theme="" | |
dark_theme="" | |
destination_path="assets/css/extended/syntax.css" | |
# Help message | |
usage() { |
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 path = require("path"); | |
const merge = require("webpack-merge"); | |
const VueLoaderPlugin = require("vue-loader/lib/plugin"); | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); | |
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
const WebpackBarPlugin = require("webpackbar"); | |
const outputFolder = path.resolve(__dirname, "../public_html/assets"); |
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
using Newtonsoft.Json.Linq; | |
using System.Linq; | |
using Microsoft.AspNetCore.Mvc.ModelBinding; | |
namespace Craidd.Helpers | |
{ | |
/// <summary> | |
/// Manage JSON Api response | |
/// </summary> | |
public class ApiResponseHelper : IApiResponseHelper |
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
$TagLib = "C:\Program Files\PackageManagement\NuGet\Packages\TagLibSharp.2.2.0\lib\netstandard2.0\TagLibSharp.dll" | |
Add-Type -Path $TagLib | |
[System.Reflection.Assembly]::LoadFile($TagLib) | |
# Get the files which should be moved, without folders | |
$files = Get-ChildItem 'X:\Tmp\moveit' -Recurse | Where-Object { !$_.PSIsContainer } | |
# List Files which will be moved | |
$files |
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 | |
generateTableMappings($raw_start_date, $raw_end_date) | |
{ | |
$start_date = \Datetime::createFromFormat('Y-m', $raw_start_date); | |
$end_date = \Datetime::createFromFormat('Y-m', $raw_end_date); | |
$iteration_date = clone $start_date; | |
$tables = []; | |
while ($iteration_date <= $end_date) { |
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 Grav\Plugin\Console; | |
use Grav\Console\ConsoleCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
/** | |
* Class GeneratorCommand | |
* |