Skip to content

Instantly share code, notes, and snippets.

View dfockler's full-sized avatar
☁️
What's going on up there.

Dan Fockler dfockler

☁️
What's going on up there.
View GitHub Profile
@dfockler
dfockler / MyKlass.rb
Last active August 29, 2015 14:23 — forked from anonymous/MyKlass.rb
module MyOtherModule
class MyOtherClass
include Celluloid
include Celluloid::Logger
attr_accessor :name
def initialize(params={})
@name = params[:name]
info "-----------"
srch = Tire.search Listing.index_name do |s|
s.filter :term, 'categories.name' => 'Food & Drink' # I replaced Food & Drink with a category I know exists
end
srch.results
# => Doesn't have any results, but the query works
@dfockler
dfockler / topics
Created February 11, 2016 00:36
Topics for Linux Admin
Booting
Package Management
The Bash Shell
Pattern Matching
CLI Text Editing
Virtualization
Users, Groups, and File Permissions
Logging
System Monitoring
Processes
@dfockler
dfockler / trees.pde
Created May 22, 2016 16:45
Random Tree Generator in Processing
Node root;
int level_max = 5;
int branch_max_x = 200;
int branch_min_x = 0;
int branch_max_y = 200;
int branch_min_y = 0;
int children_max = 4;
void setup() {
size(1000, 800);