[ Launch: [dot enter: 08] movetofront ] 6286191 by jgautsch
[ Launch: [dot enter: 09] move along ] 6286432 by jgautsch
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
require 'socket' | |
require 'pp' | |
host = 'localhost' | |
port = 1234 | |
s = UDPSocket.new | |
s.bind(nil, port) | |
while 1 do |
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
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
* Interacting with server | |
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | |
char *file_name = argv[3]; | |
/* First send the length of the file name */ | |
short int file_name_length = strlen(file_name); | |
if (send(sock, &file_name_length, sizeof(file_name_length), 0) <= 0) | |
DieWithError("send() sent a different number of bytes than expected"); |
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
require File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require(*Rails.groups(:assets => %w(development test))) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
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
# This one worked just fine 20 minutes ago. Nothing has changed since then. | |
class AddSubjectToIfReport < ActiveRecord::Migration | |
def change | |
add_column :if_reports, :subject, :text | |
end | |
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
/***** Jon Gautsch and Rob Wirthman | |
***** thermd.c | |
***** CSE 30264 - Project 2 | |
***** | |
***** USAGE: ./tcpserver | |
***** | |
***** See comments and README.txt for details | |
*****/ | |
#include <stdio.h> /* for printf() and fprintf() */ |
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
/***** Jon Gautsch and Rob Wirthman | |
***** thermd.c | |
***** CSE 30264 - Project 2 | |
***** | |
***** USAGE: ./tcpserver | |
***** | |
***** See comments and README.txt for details | |
*****/ | |
#include <stdio.h> /* for printf() and fprintf() */ |
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
/* HPSORT.C : PROGRAM TO CREATE A HEAP AND TO SORT A HEAP, HEAP IS STORED IN AN ARRAY */ | |
#include<stdio.h> | |
#include<conio.h> | |
void crheap(int [], int); | |
void processheap(int [],int); | |
int main(void) | |
{ | |
int k[50],child,parent,q,key,n,t,i; | |
clrscr(); | |
printf("\n enter the no. of elements: "); |
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 <stdio.h> | |
#include <stdlib.h> | |
// #include "Tree.h" | |
typedef int ElementType; | |
struct TreeNode; | |
typedef struct TreeNode *Position; | |
typedef struct TreeNode *SearchTree; | |
SearchTree MakeEmpty(SearchTree T); |