View webpack.config.js
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"); |
View ApiResponseHelper.cs
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 |
View cleanup_phone_photos.ps
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:\OneDrive\Pictures' -Recurse | Where-Object { !$_.PSIsContainer } | |
# List Files which will be moved | |
$files |
View generate_month_diff.php
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) { |
View GeneratorCommand.php
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 | |
* |