Skip to content

Instantly share code, notes, and snippets.

@kellyelton
kellyelton / attention.txt
Created August 21, 2014 20:17
ATTENTION
!!!Attention Attention!!!
WE'VE GOT A GREAT DEAL FOR YOU
WE GOT CRAYONS, HALF PRICE
())__CRAYON___)) > <(°^°<)
YOU CAN'T FORGET ABOUT OUR AWESOME SELECTION OF BOOBIES
(>°^°)> (. )( .)
[.][.] <(°^°<)
(>°^°)> (.)(.)
@kellyelton
kellyelton / .vimrc
Created August 21, 2014 05:48
vimrc
execute pathogen#infect()
:set number
:color slate
:set tabstop=4
:set shiftwidth=4
:set textwidth=0
:set wrapmargin=0
syntax on
filetype plugin indent on
:set ai
@kellyelton
kellyelton / TestResponse.txt
Last active August 29, 2015 14:05
Test responses
!LIST
Don't worry {0}, it'll be ok...
You don't wanna go there {0}
I can't stop, I'm addicted to {0}!
Don't knock {0} until you try it!
Hi {0}!
Finally, {0} is here!
I've been waiting to talk to {0} all day!
My best buddy {0}, how's that booty shakin?
Hey...Hey {0}...Have you heard the news?
using System;
using System.Collections.Generic;
using System.Management.Instrumentation;
using System.Net;
using System.Net.Sockets;
using Media;
using Media.Rtmp;
using Media.Rtp;
using Media.Rtsp;
using Media.Rtsp.Server.Streams;
@kellyelton
kellyelton / newAskCard.py
Last active August 29, 2015 14:03
New ask card
def askCard(criteria = {}, operator = None, source = "db"):
if source == "db":
realDick = Dictionary[String, List[String]]()
for (propKey, propValue) in criteria.items():
if type(propValue) is list:
realDick[propKey] = List[String](propValue)
else:
realDick[propKey] = List[String]([propValue])
apiResult = _api.AskCard(realDick,operator)
if apiResult == None: return (None, 0)
<!--
Any game section that is required outside of the game window needs to be global across all game modes, and should be
included only in the root definition xml:
- All tags in the <game> element
- <fonts>
- <proxygen>
- <gameModes>
- <card>
- <deck>
- <sharedDeck>
@kellyelton
kellyelton / gist:8776309
Created February 2, 2014 23:01
Freshdesk c# sso /w timestamp
public ActionResult HelpLogin()
{
const string key = "abcdefghijklmnopqrtuvwxyz";
const string pathTemplate = "http://demo.freshdesk.com/login/sso?name={0}&email={1}&timestamp={2}&hash={3}";
var username = UserHelper.CurrentUser.UserName;
var email = UserHelper.CurrentUser.Email;
string timems = (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds.ToString();
var hash = GetHash(key, username, email, timems);
@kellyelton
kellyelton / gist:7307752
Created November 4, 2013 19:18
SingletonTemplate
#region Singleton
internal static $name$ SingletonContext { get; set; }
private static readonly object $name$SingletonLocker = new object();
public static $name$ Instance
{
get
{
public static class MethodInfoExtensions
{
/// <summary>
/// Return the method signature as a string.
/// </summary>
///
/// <param name="property">
/// The property to act on.
/// </param>
///