This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<!-- normally you wouldn't show this --> | |
<div id="paste" contenteditable="true"></div> | |
<script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net.Mime; | |
using Xabe.FFmpeg; | |
var builder = WebApplication.CreateBuilder(args); | |
var app = builder.Build(); | |
FFmpeg.SetExecutablesPath(@"C:\Temp\Tools\ffmpeg\bin"); | |
app.MapGet("/thumbnail/{filename}", async (string filename, HttpContext context) => { | |
var i = await FFmpeg.GetMediaInfo($@"C:\Temp\files\{filename}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="bored" class="step slide" data-x="-1000" data-y="-1500"> | |
<q>Aren't you just <b>bored</b> with all those slides-based presentations?</q> | |
</div> | |
<div class="step slide" data-x="0" data-y="-1500"> | |
<q>Don't you think that presentations given <strong>in modern browsers</strong> shouldn't <strong>copy the limits</strong> of 'classic' slide decks?</q> | |
</div> | |
<div class="step slide" data-x="1000" data-y="-1500"> | |
<q>Would you like to <strong>impress your audience</strong> with <strong>stunning visualization</strong> of your talk?</q> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TypeBuilderFromJson | |
{ | |
public static Type CreateType(JObject jObject) | |
{ | |
var dict = new Dictionary<string, object>(); | |
foreach (var child in jObject) | |
{ | |
dict.Add(child.Key, child.Value); | |
} | |
return CompileResultType(dict); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Utilities { | |
export class Timer implements eg.IUpdateable { | |
private OnTick: eg.EventHandler; | |
private _start: number; | |
private _interval: number; | |
private _started: boolean; | |
private _lastTime: number; | |
constructor(interval: eg.TimeSpan); | |
constructor(interval: eg.TimeSpan, callback?: Function); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ``` | |
* ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ | |
* ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ | |
* ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ | |
* ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ | |
* ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░▌ | |
* ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ | |
* ▐░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ | |
* ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.IO; | |
using System.Text; | |
namespace BensWordCounter | |
{ | |
public class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WindowsAzureServiceBusQueueTest | |
{ | |
private static readonly string ClientId = Guid.NewGuid().ToString("N"); | |
private TokenProvider _credentials; | |
private NamespaceManager _namespaceClient; | |
private MessagingFactory _factory; | |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace BST | |
{ | |
using System; | |
using System.Collections; | |
public class BloomFilter<T> | |
{ | |
private readonly int _size; | |
//how many times to run the hash method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.IO; | |
using System.Linq; | |
namespace PixelSort | |
{ | |
class Program | |
{ |
NewerOlder