Skip to content

Instantly share code, notes, and snippets.

Avatar

David Douglas deadlyfingers

View GitHub Profile
@deadlyfingers
deadlyfingers / wordpress-download-media.rb
Last active Oct 5, 2018
Downloads Wordpress images and media files from exported posts
View wordpress-download-media.rb
# Downloads Wordpress images and media files from exported posts
# usage:
# ruby ./wordpress-download-media.rb
# ruby ./wordpress-download-media.rb "_posts" "assets/media" "svg,pdf"
require "open-uri"
require "fileutils"
# default config
@deadlyfingers
deadlyfingers / wordpress-html-to-md.rb
Last active Sep 4, 2020
Converts Wordpress .html to Markdown .md file
View wordpress-html-to-md.rb
# Converts Wordpress .html to Markdown .md file
# usage:
# ruby ./wordpress-html-to-md.rb "_posts/post.html"
# ruby ./wordpress-html-to-md.rb "_posts"
# requires:
# gem install reverse_markdown
require 'fileutils'
@deadlyfingers
deadlyfingers / ibex-dashboard-unity-ui-application-insights
Last active Dec 21, 2018
Ibex dashboard template for Unity UI events
View ibex-dashboard-unity-ui-application-insights
/// <reference path="../../../client/@types/types.d.ts"/>
import * as _ from 'lodash';
export const config: IDashboardConfig = /*return*/ {
id: "unity_ui",
name: "Unity dashboard",
icon: "dashboard",
url: "unity_ui",
description: "Unity UI Analytics dashboard sample",
preview: "/images/sample.png",
@deadlyfingers
deadlyfingers / ibex-dashboard-mixed-reality-template-sample.ts
Last active Dec 21, 2018
Ibex dashboard template to make App Insights dashboard for Mixed Reality / HoloLens. (Usage: Import this template into Ibex Dashboard and config using your App Insights key)
View ibex-dashboard-mixed-reality-template-sample.ts
/// <reference path="../../../client/@types/types.d.ts"/>
import * as _ from 'lodash';
export const config: IDashboardConfig = /*return*/ {
id: "unity_mr",
name: "Mixed Reality dashboard",
icon: "dashboard",
url: "unity_mr",
description: "Unity Mixed Reality Analytics dashboard sample",
preview: "/images/sample.png",
@deadlyfingers
deadlyfingers / UnityLUISApp.json
Created Apr 21, 2018
LUIS app for Unity to change color, size and position of gameobjects - https://github.com/Unity3dAzure/UnityWebSocketDemo
View UnityLUISApp.json
{
"luis_schema_version": "2.2.0",
"versionId": "0.1",
"name": "UnityLUISApp",
"desc": "LUIS app for Unity to change color, size and position of gameobjects.",
"culture": "en-us",
"intents": [
{
"name": "Change Color"
},
View PostTester
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
[RequireComponent(typeof(TextMesh))]
public class PostTester : MonoBehaviour {
private TextMesh textmesh;
@deadlyfingers
deadlyfingers / cordova.json
Last active Mar 27, 2016
Generate app icons and splash screens using a 'logo.png' source image and a json package for multiple platforms
View cordova.json
{
"package": "Cordova",
"package-version": "5.1.1",
"revision": 1,
"output": [
{
"category": "iOS",
"description": "iOS icons",
"alpha": false,
"path": "Resources/icons",
@deadlyfingers
deadlyfingers / fileswap.rb
Last active Aug 29, 2015
Helper script to copy a bunch of images from one source folder to replace/update images within Camtasia project sub-directories.
View fileswap.rb
#!/usr/bin/ruby
# fileswap.rb v1.0 written by @deadlyfingers
# Helper script to copy a bunch of images from one source folder
# to replace/update images within Camatasia project sub-directories.
# Usage:
# ruby fileswap.rb "images-dir" "target-dir"
# Example:
# ruby fileswap.rb "/Users/david/Pictures/CamtasiaStills" "/Users/david/Movies/Camtasia 2/MyProject.cmproj"
# Disclaimer:
You can’t perform that action at this time.