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 <stdlib.h> | |
typedef struct { | |
char *name; | |
int length; | |
} message_t; | |
int main(void) { | |
message_t *messages; | |
int amount = 50; |
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> | |
enum { MAX_READ_BYTES = 1024 }; | |
int main(void) { | |
FILE *f = fopen("data.txt"); | |
char buffer[MAX_READ_BYTES]; | |
char *ret; |
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
import codecs | |
import csv | |
import os | |
import sys | |
from collections import defaultdict | |
from operator import itemgetter | |
from pprint import pprint | |
KEYS = ['Timestamp', | |
'name', |
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
#!/usr/bin/env python | |
import codecs | |
import os | |
import sys | |
from collections import defaultdict | |
from pprint import pprint | |
STATE_NAME, STATE_ACCUSATION = 0, 1 |
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
import django.utils.simplejson as json | |
from django.core.urlresolvers import reverse | |
from django.http import HttpResponse | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from scg.apps.courses.models import Course | |
from scg.apps.reviews.models import CourseReview | |
def course(request, cid=None): |
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
headers = { | |
'SCG':['dep1','num1','dep2','num2','blank','dr','title','is_cancelled','is_closed','professor1','professor2','professor3','pid1 | |
'CT':['dep1','num1','term','blank','dr','author1','author2','author3','author4','author5','author6','dep2','num2','description' | |
'ST':['dep','num','term','format','format_number','format_sub_section','session','begins','ends','is_tba','day1','day2','day3', | |
'XL':['dep1','num1','term','offer_number','dr','dep','num','blank','title','cross_list','cid'] | |
} | |
dr = distribution requirement | |
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
#!/usr/bin/env python | |
import os | |
import subprocess | |
import sys | |
p = subprocess.Popen([sys.argv[1]], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
for line in open(sys.argv[2]): | |
p.stdin.write(line) | |
p.stdin.flush() |
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
// ------------------------------------------------------------------------ | |
// ELE 206: top_module for PUnC Project | |
// Author: Dana Hoffman and Hao Lian (based on Arnab Sinha's code) | |
// Description: A computer! | |
// ------------------------------------------------------------------------ | |
`timescale 1ns / 1ps | |
module top_module(reset, sysclk, uclk, ss, en, led); | |
parameter I_bus_width = 8; |
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
i = 0; I_mem[i] <= 8'he0; // ldi 32 | |
i = i + 1; I_mem[i] <= 8'h20; | |
i = i + 1; I_mem[i] <= 8'h00; // store (00) | |
i = i + 1; I_mem[i] <= 8'h00; | |
i = i + 1; I_mem[i] <= 8'he0; // ldi 18 | |
i = i + 1; I_mem[i] <= 8'h12; | |
i = i + 1; I_mem[i] <= 8'h00; // store (01) | |
i = i + 1; I_mem[i] <= 8'h01; | |
i = i + 1; I_mem[i] <= 8'h10; // out |
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
$ hexdump -C Mom.pdf | |
00000000 55 6e 61 75 74 68 6f 72 69 7a 65 64 |Unauthorized| | |
0000000c |
OlderNewer