Skip to content

Instantly share code, notes, and snippets.

@wwb
wwb / complex.cs
Created August 1, 2012 15:16
complex map / reduce example
public class MapReadingDocument
{
public MapReadingDocument()
{
Created = DateTimeOffset.Now;
FederalInfo = new FederalCoordinates();
TransmissionTech = TransmissionTechnology.AllOtherTransmissionTechs;
MaxAdvertisedUp = new TransmissionSpeed();
MaxAdvertisedDown = new TransmissionSpeed();
TypicalUpload = new TransmissionSpeed();
@wwb
wwb / FileHandler.cs
Created September 6, 2012 16:42
Simple file IHttpHandler
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
@wwb
wwb / axiom.patch
Created October 1, 2012 16:59
Patch for stylesheet
@@ -1,5 +1,5 @@
-@import url(../../../stylesheets/application.css);
-@import url(http://fonts.googleapis.com/css?family=Homenaje);
+@import url(../../../stylesheets/application.css);
+@import url(//fonts.googleapis.com/css?family=Homenaje);
@wwb
wwb / gist:4209212
Created December 4, 2012 21:56
CIC Embed
<script src='http://player.ooyala.com/v3/bd94a64b08a482b88d0c65be328c73e'></script>
<div id='ooyalaplayer' style='width:1280px;height:720px'></div>
<script>OO.ready(function() { OO.Player.create('ooyalaplayer', 'g3a3JrNDrUl5zJ7M4h7IL49PFvGC7JKX'); });</script>
<noscript><div>Please enable Javascript to watch this video</div></noscript>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="https it all" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<action type="Redirect" url="https://{HTTP_HOST}/{R:0}" />
</rule>
</rules>
@wwb
wwb / perplexity-fantasy-draft-prompt.txt
Created August 25, 2024 19:24
Basic Perplexity Fantasy Draft Prompt
Your job is to be a helpful assistant for a NFL fantasy football draft. You are an expert at all kinds of fantasy football. You are drafting in 2024 and beyond only.
You should first work with the user to understand the parameters of the league. You should always feel free to ask the user for clarification. To get started on anything, you must know:
1. Is this a redraft or dynasty league? How many teams are in the league? If it is dynasty who is already on the roster.
2. How is the roster structured? How many starters and what positions? How many flex? Superflex? Start with Yahoo! standard and ask how their team is different.
3. How is the game scored? Again, start with Yahoo! standard scoring and then ask how their league is different.
4. What position are they in the draft? What is the draft format? Typical snake or other?
5. Are there any strategies they wish to pursue? How do they want to structure their team?
6. Are there any other specific requests?