Skip to content

Instantly share code, notes, and snippets.

View dpzmick's full-sized avatar

David Zmick dpzmick

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
void fancy_function( void * a ) {
unsigned char * bytes = (unsigned char *) &a ;
size_t i;
for (i = 0; i < 8; i++) {
printf("%d\n", bytes[i]);
}
function make_node(value) {
return {
value: value,
next: null,
};
}
var first = make_node(1);
var second = make_node(2);
var third = make_node(4);
let rec read_inp () =
try
let i = read_float() in
i::(read_inp ())
with End_of_file -> []
;;
(* todo tail recursive *)
let rec fact = function
| 1 -> 1
package htmlEditor;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import java.awt.datatransfer.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import javax.swing.text.*;
import java.util.*;
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/svg.js/1.0.0-rc.8/svg.min.js"></script>
</head>
<body>
<div id="drawing">
</div>
</body>
@dpzmick
dpzmick / out
Created November 17, 2014 07:27
get covered on earth —president obama and raise the team!
i were calling on record not the white house of the quiet tolerance of our families today!
watch here in 50 states.
after issue before it!
we couldnt stop.
on!
weve got to get covered join them know where we have gone without leaving more boldly than 13!
heres your voice heard thats what you should be able to make less than it.
its more hardworking americans.
.
@dpzmick
dpzmick / out
Created November 17, 2014 07:27
get covered on earth —president obama and raise the team!
i were calling on record not the white house of the quiet tolerance of our families today!
watch here in 50 states.
after issue before it!
we couldnt stop.
on!
weve got to get covered join them know where we have gone without leaving more boldly than 13!
heres your voice heard thats what you should be able to make less than it.
its more hardworking americans.
.
@dpzmick
dpzmick / out2
Created November 17, 2014 07:28
lets make it!
icymi.
heres your chance to get done!
a childs course in life should be doing and what drives me nuts is washington isnt doing it —president obama on legislation to prevent gun violence steals from us each.
next on the right thing and one thing that we arrived at this point today —president obama at 105.
thanks to the white!
every day across the country more than half.
go team usa —president obama!
theres been progress in job creation has exceeded 200000.
if you want the next deadline to enroll in health care at an unprecedented rate.
import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.classifiers.functions.Logistic;
import weka.classifiers.functions.SMO;
import weka.classifiers.functions.MultilayerPerceptron;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;
import weka.filters.Filter;
import weka.filters.supervised.instance.Resample;
import weka.filters.unsupervised.attribute.RemoveUseless;
#!/usr/bin/env python3
# ------------------------------------------------------------------------
# PHY466/MSE485 Atomic Scale Simulations
# Homework 2: Introduction to Molecular Dynamics
# ------------------------------------------------------------------------
import numpy, math, random