Skip to content

Instantly share code, notes, and snippets.

View weirdyang's full-sized avatar
💭
I may be slow to respond.

weirdyang

💭
I may be slow to respond.
  • Singapore
View GitHub Profile
<button onclick="fetchMovies(movieJson)">Get Movie Data</button>
<button onclick="processData(tvShows)">Get TV shows Data</button>
@weirdyang
weirdyang / do-things.markdown
Created February 25, 2024 12:24
Do 💯 things ✅

Do 💯 things ✅

Do 100 things, and track it with this ugly ass tracker.

A Pen by yo on CodePen.

License.

@weirdyang
weirdyang / cert.cs
Created September 20, 2023 17:04 — forked from yutopio/cert.cs
Certificate generation with BouncyCastle C#
using Org.BouncyCastle.Asn1.Pkcs;
using Org.BouncyCastle.Asn1.Sec;
using Org.BouncyCastle.Asn1.X509;
using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Operators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Security;
@weirdyang
weirdyang / Certificate.cs
Created September 20, 2023 16:15 — forked from jimmyca15/Certificate.cs
Code for creating a self signed certificate in .NET Core using CertEnroll APIs
namespace CreateCert
{
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
class Certificate
{
public static async Task<X509Certificate2> Create(string subject, string friendlyName, IEnumerable<string> alternativeNames)
@weirdyang
weirdyang / pandoras_vox.mdown
Created April 5, 2023 06:32 — forked from kolber/pandoras_vox.mdown
pandora’s vox: on community in cyberspace

pandora’s vox: on community in cyberspace

by humdog (1994)

when i went into cyberspace i went into it thinking that it was a place like any other place and that it would be a human interaction like any other human interaction. i was wrong when i thought that. it was a terrible mistake.

the very first understanding that i had that it was not a place like any place and that the interaction would be different was when people began to talk to me as though i were a man. when they wrote about me in the third person, they would say “he.” it interested me to have people think i was “he” instead of “she” and so at first i did not say anything. i grinned and let them think i was “he.” this went on for a little while and it was fun but after a while i was uncomfortable. finally i said unto them that i, humdog, was a woman and not a man. this surprised them. at that moment i realized that the dissolution of gender-category was something that was happening everywhere, and perhaps it was only just very obvious on the ne

using System.Web.Mvc;
using Telerik.Sitefinity.Mvc;
namespace SitefinityWebApp.Mvc.Controllers
{
[ControllerToolboxItem(Name = "FileAsyncUploader", Title = "File Async Uploader", SectionName = "Custom MVC", CssClass = "sfMvcIcn")]
public class FileAsyncUploaderController: Controller
{
[HttpGet]
public ActionResult Index()
/**
* jQuery 2.1.3's parseHTML (without scripts options).
* Unlike jQuery, this returns a DocumentFragment, which is more convenient to insert into DOM.
* MIT license.
*
* If you only support Edge 13+ then try this:
function parseHTML(html, context) {
var t = (context || document).createElement('template');
t.innerHTML = html;
return t.content;
@weirdyang
weirdyang / do-things.markdown
Created July 12, 2022 05:53
Do 💯 things ✅

Do 💯 things ✅

Do 100 things, and track it with this ugly ass tracker.

A Pen by yo on CodePen.

License.

@weirdyang
weirdyang / FilterDynamicContentItems.cs
Created June 23, 2022 15:18 — forked from sitefinitySDK/FilterDynamicContentItems.cs
SF_10.1, SF_10.2, SF_11.0, SF_11.1, SF_11.2, SF_12.0, SF_12.1, SF_12.2, SF_13.0, SF_13.1, SF_13.2, SF_13.3 - https://docs.sitefinity.com/example-filter-dynamic-content-items-by-dynamic-field
using System;
using System.Linq;
using Telerik.Sitefinity.Data.Linq.Dynamic;
using Telerik.Sitefinity.DynamicModules;
using Telerik.Sitefinity.DynamicModules.Model;
using Telerik.Sitefinity.Modules.Libraries;
using Telerik.Sitefinity.RelatedData;
using Telerik.Sitefinity.Taxonomies;
using Telerik.Sitefinity.Taxonomies.Model;
using Telerik.Sitefinity.Utilities.TypeConverters;
@weirdyang
weirdyang / animate-waypoints.css
Created June 21, 2022 14:49 — forked from KittenCodes/animate-waypoints.css
jQuery for using Animate CSS & Waypoints JS with Oxygen
/* Add this to a stylesheet via Manage > Stylesheets in the top right of the builder */
.wp-embed-responsive .cssAnimate {
opacity: 0;
}