This file contains 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
// | |
// SimpleDatabase.h | |
// | |
// Copyright (c) 2013 Erik Ralston | |
// | |
// MIT License | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
This file contains 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.Net; | |
using System.Text; | |
// Customize this namespace as needed | |
namespace Utility | |
{ |
This file contains 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
# File Types known to be unecessary | |
*.swp | |
*.bin | |
*.checkpoint | |
*ShaderCache* | |
*PCTOC* | |
*.log | |
*.obj | |
*IphoneTOC* | |
*.dmp |
This file contains 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> | |
/// Class for holding extensions for the HtmlHelper function | |
/// </summary> | |
public static class HtmlHelperExtensions | |
{ | |
/// <summary> | |
/// Returns true if the build is DEBUG; otherwise, returns false | |
/// </summary> | |
/// <param name="htmlHelper"></param> | |
/// <returns></returns> |
This file contains 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
/// | |
/// A singleton class template for header (.h) | |
/// | |
@interface Singleton : NSObject | |
+ (Singleton*)shared; | |
@end | |
/// |
This file contains 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
// | |
// .Net DataGrid spits out only a tbody for the entire table, but http://datatables.net/ needs thead as well | |
// This yanks out the first row of the table, assumed to be the header row, then places it within a new thead | |
// Should be called like this: #("#dot_net_table_id").convertFirstTableRowToHeader().dataTable(); | |
// | |
(function ($) { | |
$.fn.convertFirstTableRowToHeader = function () { | |
return this.each(function () { | |
var table = $(this); | |
if (!table.is("table")) |
This file contains 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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
This file contains 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
<style type="text/css"> | |
.clearfix:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} |
This file contains 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
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g,""); | |
} | |
String.prototype.ltrim = function() { | |
return this.replace(/^\s+/,""); | |
} | |
String.prototype.rtrim = function() { | |
return this.replace(/\s+$/,""); | |
} |
This file contains 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
/* | |
* Cross-browser display: inline-block | |
* | |
* References: | |
* - http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/ | |
* - http://www.getonthenet.eu/css-howto-cross-browser-inline-block/ | |
*/ | |
inline-block { | |
display: -moz-inline-box; /* Firefox 2 */ |