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
<?xml version="1.0" encoding="UTF-8"?> | |
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<author>Terrance Smith</author> | |
<documentationURL>http://craigslist.org/</documentationURL> | |
<sampleQuery> | |
select * from {table} where location="sfbay" | |
</sampleQuery> | |
</meta> | |
<bindings> |
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
public static string RemoveSpecialCharacters(string str) | |
{ | |
int idx = 0; | |
char[] chars = new char[str.Length]; | |
foreach (char c in str) | |
{ | |
if ((c >= '0' && c <= '9') | |
|| (c >= 'A' && c <= 'Z') | |
|| (c >= 'a' && c <= 'z') | |
|| (c == '.') || (c == '_')) |
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
@echo off | |
:: //http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/ | |
:: APPCMD (command) (object-type) <identifier> < /parameter1:value1 ... >* | |
:: start /wait notepad.exe | |
echo "Turn IIS Debugging Off ..." | |
start "Turn IIS Debugging Off" /wait C:\Windows\System32\inetsrv\APPCMD SET Config /section:asp /appAllowDebugging:False | |
echo "Turned Off" | |
start "Restarting IIS" /wait IISRESET |
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
@echo off | |
:: //http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/ | |
:: APPCMD (command) (object-type) <identifier> < /parameter1:value1 ... >* | |
:: start /wait notepad.exe | |
echo "Turn IIS Debugging On ..." | |
start "Turn IIS Debugging On" /wait C:\Windows\System32\inetsrv\APPCMD SET Config /section:asp /appAllowDebugging:True | |
echo "Turned ON" | |
start "Restarting IIS" /wait IISRESET |
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
@echo off | |
:: Preforms commit on Webs Directory | |
echo Starting Commit | |
echo bzr commit -m "Daily Commit for :%date% | |
cd C:\Webs\ | |
bzr.exe commit -m "Daily Commit for : %date%" | |
pause | |
echo "Task Complete" | |
cd .. |
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
//Some old math stuff I wrote when in Trig class | |
using System; | |
using System.IO; | |
public class Geometry | |
{ | |
//-----Area of a circle A= pi^2-------------------------------------------- | |
public static double Area_Circle(double radius) | |
{ | |
double area = 2*(Math.PI*(radius*radius)); |
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
#!/bin/bash | |
#Author: Terrance Smith | |
#musicm122.blogspot.com | |
#Optional Argument = n : no prompt | |
#currently will take a while on a large number of files | |
function print_files | |
{ | |
for file in * | |
do echo $file |
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
public static class DiagnositcObjectExtensions | |
{ | |
public static string ToDiagnosticInfoString(this IEnumerable items) | |
{ | |
var retval = String.Empty; | |
if(items.Count()>0) | |
{ | |
StringBuilder sb = new StringBuilder(); | |
sb.AppendLine(“—–BEGIN DIAGNOSTIC——-”); |
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
.UserInputTable table { | |
width: 100%; | |
border: 0; | |
border-spacing:0; | |
border-collapse:collapse; | |
} | |
.UserInputTable table td, .UserInputTable table td { | |
padding:5; | |
} |
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
#include "StdAfx.h" | |
#include "RubeLoader.h" | |
#include "rubestuff/b2dJsonImage_OpenGL.h" | |
using namespace std; | |
//--Comparer | |
bool compareImagesByRenderOrder_ascending(const b2dJsonImage_OpenGL* a, const b2dJsonImage_OpenGL* b) | |
{ | |
return a->renderOrder < b->renderOrder; |
OlderNewer