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; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Dynamic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Web.Script.Serialization; |
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
sealed class DynamicJsonConverter : JavaScriptConverter | |
{ | |
public override object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer) | |
{ | |
if (dictionary == null) | |
throw new ArgumentNullException("dictionary"); | |
return type == typeof(object) ? new DynamicJsonObject(dictionary) : null; | |
} |
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
<div class="clear hideSkiplink"> | |
<a href="#NavigationMenu_SkipLink"> | |
<img alt="Skip Navigation Links" src="somelonghashedthing" width="0" height="0" style="border-width: 0px;" /></a> | |
<div class="menu" id="Div1"> | |
<ul class="level1"> | |
<li><a title="The Home Page" class="level1 selected" href="/Default.aspx">Home</a> | |
</li> | |
<li><a>Administrator </a> | |
<ul class="level2"> | |
<li><a title="Add, Edit, Delete, Update Customers" class="level2" href="/Secure/Administrator/CustomerMaint.aspx"> |
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
#NavigationRow | |
{ | |
background-color: #3a4f63; | |
width: 100%; | |
} | |
#NavigationCell | |
{ | |
width: 100%; | |
clear: both; |
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.Web.Script.Serialization; | |
using System.Net; | |
using System.IO; | |
using System.Windows.Forms; | |
using System.Text; | |
using System.Collections; | |
using LELibrary.Logic; | |
using LELibrary.Objects; |
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
public T JsonPost<T>(string url, string strJson) | |
{ | |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); | |
request.ContentType = "application/json; charset=utf-8"; | |
request.Accept = "application/json, text/javascript, */*"; | |
request.Method = "POST"; | |
byte[] byteArray = Encoding.UTF8.GetBytes(strJson); | |
request.ContentLength = byteArray.Length; |
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
// This gets converted into a json hash. | |
public class CreateEmpireParms | |
{ | |
public string name; | |
public string password; | |
public string password1; | |
public string captcha_guid; | |
public string captcha_solution; | |
public string email; | |
public string facebook_uid; |
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
{ | |
"method":"create", | |
"params":[ | |
"AHLibTest", | |
"sample", | |
"sample", | |
"d6656e5c-4b9f-4ecb-948f-ac95408c41e2", | |
"17", | |
"[email protected]", | |
null, |
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
public static T JsonPost<T>(string url, string strJson) | |
{ | |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); | |
request.ContentType = "application/json; charset=utf-8"; | |
request.Accept = "application/json, text/javascript, */*"; | |
request.Method = "POST"; | |
byte[] byteArray = Encoding.UTF8.GetBytes(strJson); | |
request.ContentLength = byteArray.Length; | |
using (Stream s = request.GetRequestStream()) |
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
#!/usr/bin/perl | |
# | |
# This program manages the star database used by glyphinator | |
# It performs the following functions: | |
# | |
# * Fill star db from probe data | |
# * Merge a second db into the main one | |
use strict; | |
use warnings; |
OlderNewer