Skip to content

Instantly share code, notes, and snippets.

Manners Maketh Man

Alexandru Bucur CoolGoose

Manners Maketh Man
View GitHub Profile
CoolGoose / webpack.config.js
Created Sep 23, 2018
mini css extract scss issue
View webpack.config.js
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");
CoolGoose / ApiResponseHelper.cs
Created May 1, 2018
Simple JSON API ASP .NET Core Error handling class
View ApiResponseHelper.cs
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
CoolGoose /
Last active Mar 21, 2021
Move your camera roll pictures in folders, i've liked year / year-month with month having leading 0 (originally at
$TagLib = "C:\Program Files\PackageManagement\NuGet\Packages\TagLibSharp.2.2.0\lib\netstandard2.0\TagLibSharp.dll"
Add-Type -Path $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
CoolGoose / generate_month_diff.php
Last active Feb 28, 2017
Get an array of months between two dates in PHP for table based reports :)
View generate_month_diff.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
namespace Grav\Plugin\Console;
use Grav\Console\ConsoleCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
* Class GeneratorCommand