Skip to content

Instantly share code, notes, and snippets.

@phonyphonecall
phonyphonecall / Notificaion-service.raml
Created July 7, 2014 03:19
Notification-service RAML
#%RAML 0.8
title: Notification Service
version: v0.1
baseUri: http://server/api/{version}
schemas:
- notification: |
{ "$schema": "http://json-schema.org/schema",
"type": "object",
"description": "A notification",
"properties": {
@phonyphonecall
phonyphonecall / README
Created September 15, 2014 16:24
README for cs537 P1
#Scott Hendrickson
NetID: 9067627977
09/15/2014
## Birthday Paradox Details
For this program I simply worked through each part. First handling program arguments with getopt, then the file reading, the algorithm execution was done a bit messy, then finally creates the output file. Ussually I would segement the code into more descriptive functions but it seems I got lazy on this one.
The simplified algorithm does the following:
```
for each value in fileValues:
dynamicallly allocate array value * sizeof(int)
@phonyphonecall
phonyphonecall / gist:6b49127c08c7bfaa6853
Created January 20, 2015 20:24
Cura Error Dump - Python 2.6
$ /Library/Frameworks/Python.framework/Versions/2.6/bin/python -m Cura.cura
load preferences from /Users/Scott/Library/Application Support/Cura/dev/preferences.ini
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/Users/Scott/dev/github/Cura/Cura/cura.py", line 89, in <module>
main()
File "/Users/Scott/dev/github/Cura/Cura/cura.py", line 86, in main
@phonyphonecall
phonyphonecall / hw1_parta1.pl
Last active August 29, 2015 14:15
ece556 hw1 part A log parsing
#!/usr/bin/perl
use strict;
use warnings;
#get file in
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!";
#iterate over each line to find max
my $max = -1;
my $count = -1;
@phonyphonecall
phonyphonecall / hw1_parta2.pl
Created February 21, 2015 19:10
Produces all the data in specified bin on stdout. Cat stdout to file and use in your favorite plotting program.
#!/usr/bin/perl
use strict;
use warnings;
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!";
my $max = -1;
my $count = -1;
while(<$fd>) {
$count++;
@phonyphonecall
phonyphonecall / hw1_partb1.pl
Created February 21, 2015 19:42
Generates the area percentage increase data from input file.
#!/usr/bin/perl
use strict;
use warnings;
#get file in
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!";
#iterate over each line to find max
my $maxArea = -1;
my $minArea = 9223372036854775806;
@phonyphonecall
phonyphonecall / hw1_partb2.pl
Created February 21, 2015 20:48
Prints each iteration and area that falls within the specified bin
#!/usr/bin/perl
use strict;
use warnings;
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!";
my $max = -1;
my $count = -1;
while(<$fd>) {
$count++;
@phonyphonecall
phonyphonecall / emojis_sorted
Last active August 29, 2015 14:16
A list of all of the [emoji's](http://www.emoji-cheat-sheet.com/) for all of your visually expressive needs :shipit:
:+1:
:-1:
:100:
:1234:
:8ball:
:a:
:ab:
:abc:
:abcd:
:accept:
for bash color run this:
curl https://raw.githubusercontent.com/mavnn/mintty-colors-solarized/master/.minttyrc.dark > ~/.mintty
Modify the .mintty file to liking
then reload cygwin
for the matching vim color scheme:
curl https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim > ~/.vim/colors/solarized.vim
FROM ubuntu:14.04
RUN mkdir /usr/microblaze
RUN mkdir /usr/microblaze/src
RUN mkdir /usr/microblaze/tmp
RUN mkdir /usr/microblaze/tmp/binutils-build
RUN mkdir /usr/microblaze/tmp/gcc-build
RUN apt-get update -y
RUN apt-get install -y wget