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
// === Convert SQL Compact Edition database file to SQLite database file === | |
// Dump SQL Compact Edition data to SQLite compatible SQL file | |
// - Command line tools: https://github.com/ErikEJ/SqlCeToolbox/wiki/Command-line-tools | |
// - ExportSQLCE40.exe "Data Source=D:\Northwind.sdf;" Northwind.sql sqlite | |
// The SQL file created by the SqlCeToolbox contains GUID data as text. | |
// - Connection string with GUID as text: https://www.connectionstrings.com/sqlite/ | |
// Data Source=c:\mydb.db;Version=3;BinaryGUID=False; | |
// - Recommended is to store GUID data as binary instead of text (requires less space) |
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; | |
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
//A simple C# class to post messages to a Slack channel | |
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
public class SlackClient | |
{ |
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 | |
/** | |
* | |
* Function that will automatically remove ACF field groups via JSON file update | |
* | |
*/ | |
function acf_auto_suppr($json_dirs) { | |
$groups = acf_get_field_groups(); | |
if (empty($groups)) { |