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
// TODO: Augment the hash table so all string characters are used in the hashing process | |
// Update3: Changed the array to be a three dimensional array which supports 2 slots for hash-data entry | |
#include <cstdlib> | |
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
int hash_string(char str_name[]); |
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
// Define a JSON data-structure that will look and perform like the real deal | |
//What is common to every post? Lets examine the details: | |
var forumData = { // Defining the object structure | |
"Posts" : [ // array of Posts |
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 Class FishTank | |
{ | |
// properties of the FishTank | |
// Create a list object to hold the wildlife in the tank | |
public List<Fish> TankLife = new List<Fish>(); | |
// Total widlife Capacity for a healthy tank | |
public int Gallons; |
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 Class FishTank | |
{ | |
// properties of the FishTank | |
// Create a list object to hold the wildlife in the tank | |
public List<Fish> TankLife = new List<Fish>(); | |
// Total widlife Capacity for a healthy tank | |
public int Gallons; |
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/python2.4 | |
import httplib, urllib, sys | |
# Define the parameters for the POST request and encode them in | |
# a URL-safe format. | |
params = urllib.urlencode([ | |
('js_code', open(sys.argv[1], 'r').read()), | |
('compilation_level', 'WHITESPACE_ONLY'), |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package lab41; | |
/** | |
* | |
* @author charles |
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.Web.Mvc; | |
using Newtonsoft.Json.Linq; | |
using PennyAuction.Models; | |
using System.Linq; | |
namespace MyProject.Controllers | |
{ | |
public class FacebookController : Controller | |
{ |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>[email protected]:~</title> | |
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" /> | |
<link rel="stylesheet" type="text/css" href="css/dasroot.css" /> | |
</head> | |
<body> | |
<a href="http://github.com/chuckbutler"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 99;" src="https://a248.e.akamai.net/assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a> | |
<div id="masthead"> |
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/python2.4 | |
import httplib, urllib, sys, os | |
#Open a file and read the contents. | |
f = open(sys.argv[1], 'r') | |
#Read the contents of the file | |
contents = f.readlines() |
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.Linq; | |
using Raven.Client; | |
using Raven.Client.Document; | |
using UBoundTools.Rules.Models; | |
namespace Admin.Controllers | |
{ | |
public class RuleController : Controller |