Skip to content

Instantly share code, notes, and snippets.

@deadlyfingers
deadlyfingers / fileswap.rb
Last active August 29, 2015 14:16
Helper script to copy a bunch of images from one source folder to replace/update images within Camtasia project sub-directories.
#!/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:
@deadlyfingers
deadlyfingers / cordova.json
Last active March 27, 2016 15:08
Generate app icons and splash screens using a 'logo.png' source image and a json package for multiple platforms
{
"package": "Cordova",
"package-version": "5.1.1",
"revision": 1,
"output": [
{
"category": "iOS",
"description": "iOS icons",
"alpha": false,
"path": "Resources/icons",
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 / UnityLUISApp.json
Created April 21, 2018 01:14
LUIS app for Unity to change color, size and position of gameobjects - https://github.com/Unity3dAzure/UnityWebSocketDemo
{
"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"
},
@deadlyfingers
deadlyfingers / ibex-dashboard-mixed-reality-template-sample.ts
Last active December 21, 2018 11:09
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)
/// <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 / ibex-dashboard-unity-ui-application-insights
Last active December 21, 2018 11:09
Ibex dashboard template for Unity UI events
/// <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 / wordpress-html-to-md.rb
Last active February 13, 2022 12:56
Converts Wordpress .html to Markdown .md file
# 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 / wordpress-download-media.rb
Last active October 5, 2018 08:06
Downloads Wordpress images and media files from exported posts
# 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