Skip to content

Instantly share code, notes, and snippets.

View icanhasjonas's full-sized avatar
🎩
crunching

Jonas Frost icanhasjonas

🎩
crunching
  • Bombsquad Inc, FRST Corp
  • Los Angeles, Chicago, Copenhagen, Stockholm, Bangkok
View GitHub Profile
@icanhasjonas
icanhasjonas / webcrawler.cs
Last active February 22, 2023 10:49
Web Crawler in C#
using System;
using System.Buffers;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@icanhasjonas
icanhasjonas / AwaitableCancellationTokenExtensions.cs
Last active June 7, 2017 19:05
Awaitable Cancellation Tokens
public static class AwaitableCancellationTokenExtensions
{
public struct CancellationTokenAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
private readonly CancellationToken _cancellationToken;
public CancellationTokenAwaiter(CancellationToken cancellationToken)
{
_cancellationToken = cancellationToken;
}
@icanhasjonas
icanhasjonas / glitter.asm
Last active April 7, 2017 16:47 — forked from a904guy/fucked_it_all.batch
Upgraded Jonathan Moo's ANY Window's problem fixing script. (Everyone needs glitter. WARNING: DO NOT RUN!.. My assembly skills may have deteriorated over the years)
mov ax, 0320h ; Load glitter pixels
mov dx, 0080h ; 80 pixels wide screen glitter
xor cx, cx ; Big fan of Xorn/marvel(c)
mov bx, cx ; Make sure glitter is Baxed and Counxted
int 13h ; Interest 13

Keybase proof

I hereby claim:

  • I am icanhasjonas on github.
  • I am icanhasjonas (https://keybase.io/icanhasjonas) on keybase.
  • I have a public key whose fingerprint is 353F 2B54 41B3 0DA8 69E8 EBCD 4A32 C3CB AC9D CC54

To claim this, I am signing this object:

@icanhasjonas
icanhasjonas / is.d.ts
Last active September 11, 2019 12:17
is.js typescript definition file
interface TypeMethods {
arguments(value: any): boolean;
array(value: any): boolean;
boolean(value: any): boolean;
date(value: any): boolean;
error(value: any): boolean;
function(value: any): boolean;
nan(value: any): boolean;
null(value: any): boolean;
number(value: any): boolean;