Skip to content

Instantly share code, notes, and snippets.

@assaframan
assaframan / MongoDBAuthRepository.cs
Created June 3, 2012 04:41
This is a MangoDB implementation of ServiceStack's IUserAuthRepository.
//////////////////////////////////
// A more updated version of this code could be found here:
// https://github.com/ServiceStack/ServiceStack.Contrib/blob/master/src/ServiceStack.Authentication.MongoDB/MongoDBAuthRepository.cs
///////////////////
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using ServiceStack.Common;
@joeriks
joeriks / documentstores.cs
Created August 14, 2012 07:17
Quick samples for document storage alternatives in .Net with some of the available options
//
// LiveDomain
// MongoDb
// OrmLiteAndSqlite
// Raven
// Redis
// SisoDb
//
// see also http://stackoverflow.com/questions/1777103/what-nosql-solutions-are-out-there-for-net
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@miketrebilcock
miketrebilcock / gist:5814235
Last active December 18, 2015 16:49
DatabaseRequestLogger for ServiceStack
using ServiceStack.Common.Web;
using ServiceStack.Logging;
using ServiceStack.OrmLite;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
using ServiceStack.ServiceInterface.ServiceModel;
using ServiceStack.ServiceModel;
using System;
using System.Collections.Generic;
using System.Data;
@RadGH
RadGH / woocommerce-custom-cart-item-data.php
Last active April 27, 2024 17:25
Get and set custom cart item/product information prior to WooCommerce checkout, and carry those valus over to Order Item Metadata.
<?php
// UPDATE: Stefan from Stack Overflow has explained a better way to handle cart item data.
// See http://stackoverflow.com/a/32327810/470480
// ----------------------
/*
Instructions:
@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@gokulraja
gokulraja / README.md
Last active August 26, 2015 18:20 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 7, 2024 16:24
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@CDillinger
CDillinger / FuzzyMatch.cs
Last active July 25, 2023 09:17
C# Implementation of Fuzzy Match
// LICENSE
//
// This software is dual-licensed to the public domain and under the following
// license: you are granted a perpetual, irrevocable license to copy, modify,
// publish, and distribute this file as you see fit.
using System;
using System.Collections.Generic;
public static class FuzzyMatcher
@astannard
astannard / lightning talk proposal.md
Last active June 13, 2016 11:59
React Conference lightning talk proposal

With all the plugins, boilerplate projects, SAAS and PAAS offerings plus great community support, what can be created in a weekend?

I will take you through the ups downs and highlights of using react at a Startup Weekend event, showing what can be achieved and how.

This will be a story of a wild weekend full of tips, framework and plugin summaries plus pictures from the weekend as the startup team attempt to validate an idea.

The talk will be a great insight into how react can help you rapidly prototype a business idea, with what went well and what went badly.

https://reactiveconf.com/