Skip to content

Instantly share code, notes, and snippets.

View wangyoutian's full-sized avatar
😠
Keep Coding

wyt@nilnul wangyoutian

😠
Keep Coding
View GitHub Profile
@wangyoutian
wangyoutian / index.html
Created December 30, 2023 12:27
Infinite marquee/carousel no repeated elements 🫶
<a
target="_blank"
rel="noreferrer noopener"
class="dev-link"
href="https://twitter.com/intent/follow?screen_name=jh3yy"
><svg
class="w-9"
viewBox="0 0 969 955"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@wangyoutian
wangyoutian / fourier.html
Created May 16, 2023 16:34 — forked from kazad/fourier.html
BetterExplained Fourier Example
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script src="//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<!--
TODO:
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Frameworks;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Packaging.Signing;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
using NuGet.Resolver;
using NuGet.Versioning;
@wangyoutian
wangyoutian / NugetManager.cs
Created March 12, 2021 14:28 — forked from cpyfferoen/NugetManager.cs
NuGet API wrapper to search/install packages WITH AUTHENTICATION the same way Nuget.Exe/Client does it - looks up CredentialProviders and plugins (also for Credentials). Specific use case was Azure DevOps feed access.
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Credentials;
using NuGet.PackageManagement;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Packaging.Signing;
using NuGet.ProjectManagement;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
interface IInterface
{
void DoSomething();
}
class Implementation : IInterface
{
public void DoSomething()
{
// This method can't return a Task,
@wangyoutian
wangyoutian / TypeSwitch.cs
Created September 16, 2016 02:24
Switch on type. The order of the Case() methods is important.
using System;
namespace Virtlink
{
/// <summary>
/// Executes a particular piece of code based on the type of the argument.
/// </summary>
/// <example>
/// Usage example:
/// <code>