Skip to content

Instantly share code, notes, and snippets.

View rxbynerd's full-sized avatar

@rubynerd rxbynerd

View GitHub Profile
@rxbynerd
rxbynerd / Makefile
Created April 20, 2012 14:25
Basic demonstration of a dynamic web page
thin:
thin start --port 5075 --address 127.0.0.1
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("Hello, pdoak!\n");
return 0;
}
class LightBulb
attr_accessor :state, :fitting, :filament, :wattage, :voltage
def initialize(wattage, fitting)
@wattage = wattage
@fitting = fitting
puts "creating a light bulb with #{wattage}W with a fitting of '#{fitting}'"
end
def is_on?
college path
C:\Documents and Settings\9892075\Application Data\npm;C:\Program Files\nodejs;C:\Python27;c:\jruby-1.6.7\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Novell\ZENworks\;C:\Program Files\Windows Imaging\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\QuickTime\QTSystem\
scalas next
@rxbynerd
rxbynerd / README.markdown
Created February 24, 2012 15:48
astounding

Astounding

Linked list in C

Gromit

Fetches email

Bandaid component - A2 Computing - Coursework

Contact @poptartinc if you want to slag him off

#include <stdio.h>
#include <syslog.h>
int main(int argc, const char *argv[])
{
printf("opening syslog...\n");
openlog("sysdemo", LOG_PID, LOG_USER);
syslog(LOG_INFO, "hello world");
closelog();
return 0;
#include <stdio.h>
int main(int argc, const char *argv[])
{
int i, *n;
i = 6;
n = &i;
i--;
printf("%d\n", *n);
return 0;
  1. To hide the complex hardware interactions from the user, and to manage resources like memory and processor time to programs
  2. Processor time - how long each program can spend running instructions, memory to allocate what memory is available to each program, input/output devices to avoid conflicts, and managing secondary storage for storing permanent information such as logs
  3. Processor time => Processor managment, memory => memory managment, i/o => hardware, secondary storage => i/o managment
  4. An embedded system is a computer which is designed to perform one task and one task only, and not function as general purpose as an entire computer. Consider, a router
  5. An embedded system is designed for one task and is not designed to be reprogrammed
  6. A virtual machine is a method of recreating or reimplementing a computer ontop of a computer. A virtual machine can either host an entire operting system, or it can host a programming language by interpreting code and running it based on a limited instruction s
fantastic