This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Simple manager for config items | |
/// </summary> | |
public static class ConfigManager | |
{ | |
/// <summary> | |
/// Get the config value for the given key/name | |
/// </summary> | |
/// <typeparam name="T">The expected type of the config values</typeparam> | |
/// <param name="configKey">The configuration key to get</param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
/* | |
Sample code taken shamelessly (and modified) | |
from https://developers.google.com/google-apps/calendar/quickstart/js | |
*/ | |
// Your Client ID can be retrieved from your project in the Google | |
// Developer Console, https://console.developers.google.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Threading.Tasks.Dataflow; | |
namespace TPLDataflowTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
var letters = []rune("abcdefghijklmnopqrstuvwxyz-+=.ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/codegangsta/negroni" | |
"github.com/gorilla/mux" | |
"log" | |
"net/http" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Text; | |
using System.Threading.Tasks; | |
using ServiceStack.Text; | |
namespace PrettyJsonTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'uri' | |
require 'rexml/document' | |
include REXML | |
doc = Document.new File.new(ARGV[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var e1start = e1.start.getTime(); | |
var e1end = e1.end.getTime(); | |
var e2start = e2.start.getTime(); | |
var e2end = e2.end.getTime(); | |
return (e1start > e2start && e1start < e2end || e2start > e1start && e2start < e1end); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First object, with a simple string property | |
args1 = {}; | |
args1.test1 = "blah"; | |
// Second object, deep copied from the first | |
args3 = $.extend(true, {}, args1) | |
// As you might expect... | |
// args3.test1 is "blah" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First object, with a simple string property | |
args1 = {}; | |
args1.test1 = "blah"; | |
// Second object, 'created' from the first | |
args2 = args1; | |
// As you might expect... | |
// args2.test1 is "blah" |