Skip to content

Instantly share code, notes, and snippets.

😎

Christopher Woodall cwoodall

😎
Block or report user

Report or block cwoodall

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tesseract_test.cpp
/* Results for image http://universitypublishingonline.org/content/978/11/3952/429/2/9781139524292prf3_abstract_CBO.jpg
ENGLISH TEXT OF FRENCH PREFACE‘
This book was chiefly intended for English (and American)
readers. Those points are emphasised which in the judgment of
the author required emphasis for such readers. It may be worth
while, therefore, in preparing a French translation, to indicate
quite frankly and in a few words one or two of those aspects of
the situation arising out of the Treaty of Versailles, which are of
special significance for France.
View phase-amplitude-extraction-test.py
import numpy as np
import scipy
from scipy import signal
import pylab as pl
if __name__ == "__main__":
N = 1024*8
A = 2**14
An = 400
phase = np.pi/5
@cwoodall
cwoodall / gist:ecfe6b5c6cf31ffcfa9a
Created Aug 4, 2015
A SerialTransporter using multiprocessing. For use in future projects.
View gist:ecfe6b5c6cf31ffcfa9a
#!python
import serial
from multiprocessing import Queue, Process, Event, Value
import logging
class SerialTransporter(object):
def __init__(self, port, baud=115200, timeout=1):
self.port = port
self.baud = baud
@cwoodall
cwoodall / block_example.rb
Created Jan 2, 2011
Trying to explain blocks
View block_example.rb
## This file is not meant to run, just portray what Blocks do
## RUBY Example
names = ['Chris', 'Joe', 'Jeff', 'Tom']
names.each do |name|
puts name
end
# OUTPUT:
# Chris
# Joe
@cwoodall
cwoodall / gist:847651
Created Feb 28, 2011
loss_calculations.m
View gist:847651
function watts = dBm2watts( dBm )
watts = 10^-3*10.^(dBm/10);
endfunction
function [loss_min loss_max] = loss_per_meter( meters )
loss_min = meters*.19;
loss_max = meters*.43;
endfunction
function [loss_min loss_max] = loss_per_bulkhead( bulkheads )
@cwoodall
cwoodall / blockTest.m
Created Jun 14, 2011
Just playing around with Objective-C Blocks... I like them and all things functional...
View blockTest.m
//
// blockTest.m
// blocksTest
//
// Created by Christopher Woodall on 6/14/11.
// Copyright 2011 Christopher Woodall.
// MIT License
//
#import <Foundation/Foundation.h>
@cwoodall
cwoodall / give_hugs.rb
Created Jul 4, 2011
Give Hugs To People With Ruby
View give_hugs.rb
# This program makes people happy
#
# Author:: Christopher Woodall <chris.j.woodall at gmail.com>
# Copyright:: Copyright (c) July 2011 Christopher Woodall
# License:: MIT License
# A human being
class Person
attr_reader :name, :status, :description
@cwoodall
cwoodall / columns.css
Created Jul 14, 2011
A little bit of CSS Column Magic! Well its not magic, but some css to make columns a little easier
View columns.css
/**
* @author Christopher J. Woodall
* @date Aug 21, 2011
* @license MIT License
*
* @class column
* @description for column based content in a class-wise fashion, useful for specifying design changes on the ly or in js
*
*
* @use class="float" will inherit, but class = "float right" will float to the right
@cwoodall
cwoodall / center.css
Created Jul 14, 2011
CSS Centering Classes
View center.css
.center {
display:block;
}
.center.horizontal { margin-left: auto; margin-right: auto; }
.center.vertical { top:50%; margin-top:100%; }
@cwoodall
cwoodall / blank.rb
Created Jul 19, 2011
blank.rb : Evaluate whether the Object is nil or empty. Makes sure it gets evaluated regardless of empty or nil.
View blank.rb
# Evaluate whether the Object is nil or empty. Makes sure it gets evaluated regardless of empty or nil.
#
# Author:: Christopher J. Woodall (mailto:chris.j.woodall@gmail.com)
# Copyright:: Copyright (c) 2011 Christopher J. Woodall
# License:: All Rights Reserverd
# add blank? method to Object
class Object
# Checks for nil? and empty? at once... If one fails move to the other.
def blank?
You can’t perform that action at this time.