Skip to content

Instantly share code, notes, and snippets.

public static class MethodInfoExtensions
{
/// <summary>
/// Return the method signature as a string.
/// </summary>
///
/// <param name="property">
/// The property to act on.
/// </param>
///
@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
{
@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);
<!--
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 / 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)
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 / 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?
@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 / 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 / RedditPost.txt
Last active August 29, 2015 14:05
RedditPost
Hello everybody! We are the OCTGN development team, and we looking towards the community to help improve the OCTGN experience for everyone. We regularly watch the OCTGN chatter on Twitter, Reddit, OCTGN's support forums and built-in chatroom, as well as on several other popular sites and forums, and we would like to get some feedback from everyone.
While we regularly release updates to OCTGN to address bugs and issues, we try to create big, splashy updates at every 10% interval of our funding campaign. We have a few ideas for updates between now and 100%, but we decided we are interested in feedback on what new features you all would like to see, starting with the 60% update.
We have various ties into the community, including the /r/octgn subreddit. Here are some other locations where we are active:
- Twitter: Follow @octgn_official for important update, including server status. Our tweets will always appear in the center column of the OCTGN login window. We also follow the #octgn hashtag.
- http://hel