Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "http://bigcontent.io/cms/schema/v1/schema#",
"id": "https://gist.githubusercontent.com/jamesfoster/6fc47d9fd728ad710df855fb1ee4782e/raw/types.json",
"title": "One of each",
"description": "All supported format validations",
"type": "object",
"properties": {
"text": {
"title": "Text",
@jamesfoster
jamesfoster / boxstarter.sh
Last active September 20, 2017 02:05
boxstarter
Update-ExecutionPolicy RemoteSigned
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
Enable-RemoteDesktop
cinst fiddler4
cinst git
cinst tortoisegit
cinst console-devel
cinst notepadplusplus
cinst dotpeek
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
namespace Interview
{
public class AnagramChecker
{
@jamesfoster
jamesfoster / StyleCop.patch
Created June 20, 2014 17:49
Respect the RulesEnabledByDefault setting
---
Project/Src/StyleCop/AnalyzersOptions.cs | 15 +++++++++++--
Project/Src/StyleCop/Settings/WritableSettings.cs | 26 +++++++++++++++++------
2 files changed, 33 insertions(+), 8 deletions(-)
diff --git a/Project/Src/StyleCop/AnalyzersOptions.cs b/Project/Src/StyleCop/AnalyzersOptions.cs
index 384bf30..56b11d5 100644
--- a/Project/Src/StyleCop/AnalyzersOptions.cs
+++ b/Project/Src/StyleCop/AnalyzersOptions.cs
@@ -831,7 +831,11 @@ namespace StyleCop
@jamesfoster
jamesfoster / HtmlHelperExtensions.cs
Created September 19, 2011 16:20
Templated Partials
public static MvcHtmlString TemplatedPartial(this HtmlHelper helper, string partialName, object model, string[] names, params Func<object, HelperResult>[] templates)
{
if (names.Length < templates.Length)
throw new InvalidOperationException("Please provide a name for each template.");
var viewData = new ViewDataDictionary(helper.ViewData);
var templateResults = new Dictionary<string, HelperResult>();
@jamesfoster
jamesfoster / Recommendations.md
Created March 26, 2011 01:21
Recommendations

Must Watch

  • Adaptation

    Kaufman
    Nicolas Cage, Nicolas Cage, Meryl Streep, Chris Cooper
    Charlie Kaufman is hired to write the screenplay for a book about flowers.

  • The Big Lebowski

@jamesfoster
jamesfoster / movies
Created March 24, 2011 19:55
movies
03. Salt Unrated Extended Cut.mp4
127.Hours.2010.720p.BRRip.XviD.AC3-ViSiON.avi
1408.avi
24 - Redemption.avi
30 Days of Night.avi
A River Runs Through It[1992][Eng][Mp4-H.264][Dvdrip]-Titan.mp4
A Scanner Darkly.avi
A Single Man.avi
AVP - Aliens vs Predators.avi
AVPR - Aliens vs Preditor Requiem.avi

Must Watch

  • Adaptation

    Kaufman
    Nicolas Cage, Nicolas Cage, Meryl Streep, Chris Cooper
    Charlie Kaufman is hired to write the screenplay for a book about flowers.

  • The Big Lebowski

/* --------------------------------------------------------------
reset.css
* Resets default browser CSS.
-------------------------------------------------------------- */
@import "reset";
#blueprint > .reset();
/* --------------------------------------------------------------
grid-css.less
* Sets up an easy-to-use grid of 24 columns.
By default, the grid is 950px wide, with 24 columns
spanning 30px, and a 10px margin between columns.
If you need fewer or more columns, namespaces or semantic
element names, use the compressor script (lib/compress.rb)