Skip to content

Instantly share code, notes, and snippets.

View GEverding's full-sized avatar

Garrett Everding GEverding

View GitHub Profile
@GEverding
GEverding / watchr.rb
Created October 6, 2012 21:03
Basic Watchr Script w/ notifications on completed build
#!/usr/bin/env watchr
# config file for watchr http://github.com/mynyml/watchr
# install: gem install watchr
# run: ./watchr.rb
puts "Starting watchr..."
watch( '(src/(.*).coffee)' ) do |match|
@GEverding
GEverding / link-edit.jade
Created October 11, 2012 16:29
Custom Control for Editing a Single Link
@GEverding
GEverding / README.md
Created October 17, 2012 19:44
Log Into Twitter w/ Node
@GEverding
GEverding / epic.less
Created November 27, 2012 19:09
Epic CSS Selector
#slider1:checked ~ .bg #active label:nth-child(1),
#slider2:checked ~ .bg #active label:nth-child(2),
#slider3:checked ~ .bg #active label:nth-child(3) {
background: #0adfb3;
border-color: #333 !important;
}
@GEverding
GEverding / fizzbuzz.rs
Created April 5, 2013 02:59
Fun Example of FizzBuzz in Rust
fn main() {
for int::range(1, 101) |x| {
match ( x % 3, x % 5) {
(0, 0) => io::println("fizbuzz"),
(0, _) => io::println("fizz"),
(_, 0) => io::println("buzz"),
(_, _) => io::println(x.to_str())
}
}
}
@GEverding
GEverding / q2.sql
Last active December 25, 2015 23:49
Test Script for ECE356 Midterm
drop table if exists SPP;
drop table if exists Sup;
drop table if exists Part;
drop table if exists Proj;
CREATE TABLE Sup (
sup_num int,
sup_name varchar(25),
city varchar(25),
primary key (sup_num)
@GEverding
GEverding / snippets.tex
Created November 22, 2013 03:05
Latex Snippets
{\footnotesize
\begin{tabular}{ | p{2.5cm} | p{6cm} | p{2.5cm} | p{2.6cm} | }
% show header
\hline
{\bf Function Name} &
{\bf Description} &
{\bf Input} &
{\bf Output} \\
\hline
@GEverding
GEverding / query.sql
Last active December 31, 2015 22:59
Example SQL Query to find all the records with the maximum value
select
oid, count(distinct pid)
from
owns
group by oid
having count(distinct pid) >= (select
T.max
from
(select
oid, count(distinct pid) as max
@GEverding
GEverding / example2.scala
Created February 18, 2014 14:45
Playing around with scala
trait TestClass
case class TestClassA(val id: Int) extends TestClass
case class TestClassB(val name: String) extends TestClass
case class TestClassC(val arg: Float)
trait TestClassConverter[A <: TestClass, B <: TestClass] {
def toTestClass(a: A): B
}
class Tester(val name: String) extends TestClassConverter[TestClassA, TestClassB] {

Keybase proof

I hereby claim:

  • I am geverding on github.
  • I am geverding (https://keybase.io/geverding) on keybase.
  • I have a public key whose fingerprint is 1D62 EFB6 6EB7 6A5A AE34 3B21 8D6A 7647 EC00 4E00

To claim this, I am signing this object: