Skip to content

Instantly share code, notes, and snippets.

View rasmuseeg's full-sized avatar
💭
Coding ofc.

Rasmus Eeg Møller rasmuseeg

💭
Coding ofc.
View GitHub Profile
@rasmuseeg
rasmuseeg / VBScript class for json encode decode
Last active September 28, 2021 12:08 — forked from douglascrp/VBScript class for json encode decode
JSON encode decode with VBScript
Reference: http://demon.tw/my-work/vbs-json.html
VbsJson class for parsing JSON format data with VBS
Tags: JavaScript , JSON , VB , VBS , VBScript
Title: The VBS resolve VbsJson class of JSON data format of: Demon
Link: http://demon.tw/my-work/vbs-json.html
Copyright: All articles in this blog are subject to the terms of " Signature - Non-Commercial Use - Share 2.5 China in the Same Way ".
@rasmuseeg
rasmuseeg / gist:2ec1a14400df87ec3d1cecde999a1c74
Created November 1, 2016 08:02 — forked from tomfulton/gist:2150553
Umbraco - GetMediaByPath
/// <summary>
/// Gets the media item by it's file path
/// </summary>
/// <remarks>
/// Example usage: Use in conjunction with HtmlAgilityPack or WYSIWYG.xslt to parse your RTE for Media Images, grab associated
/// properties from the Media node, and render them in your output (think alt tags, captions, etc).
/// TODO: support non "/media" directory, cleanup & further testing
/// </remarks>
/// <param name="mediaPath">Path to the uploaded file in the media directory</param>
/// <returns>Media node which contains the specified file</returns>
@rasmuseeg
rasmuseeg / DateTimeExtensions.cs
Last active March 11, 2016 08:50 — forked from ncelico/PrettyDate.cs
Inspired by moment.js
using System;
namespace System.Web
{
public static class DateTimeExtensions {
#region Momentjs
/// <summary>
///
/// </summary>