Skip to content

Instantly share code, notes, and snippets.

View bullfight's full-sized avatar
🚀

Patrick Schmitz bullfight

🚀
View GitHub Profile
@bullfight
bullfight / xml_parser.rb
Created October 29, 2015 01:44 — forked from kmile/xml_parser.rb
A small nokogiri xml reader DSL.
# A small DSL for helping parsing documents using Nokogiri::XML::Reader. The
# XML Reader is a good way to move a cursor through a (large) XML document fast,
# but is not as cumbersome as writing a full SAX document handler. Read about
# it here: http://nokogiri.org/Nokogiri/XML/Reader.html
#
# Just pass the reader in this parser and specificy the nodes that you are interested
# in in a block. You can just parse every node or only look inside certain nodes.
#
# A small example:
#
@bullfight
bullfight / seattle_rb.md
Last active August 29, 2015 14:23
Getting Started with Rails in Seattle

Community

Seattle's monthly and weekly meetup of the Rails community. This is a great way to get to know the local community and to see some excellent presentaions on software development both novice and advanced.

Essential Learning Tools

Work through this tutorial, it has concrete examples and will give you all the fundamental tools you need to build and deploy apps with ruby.

@bullfight
bullfight / youtube_channel.rb
Created March 31, 2015 20:37
Read a Youtube channel
require 'rss'
class YoutubeChannel
Video = Struct.new(:response) do
def title
response.title
end
def uri_params
#!/bin/bash
function remove_dir () {
rm -rf "$1_"
if [ -d "$1" ]
then
mv "$1" "$1_"
fi
}
@bullfight
bullfight / ownum.exs
Created September 9, 2014 23:33
implementation of enum methods in elixir
defmodule Ownum do
def all?([], _fun), do: true
def all?([head | tail], fun) do
if fun.(head) do
all?(tail, fun)
else
false
end
end

Community

This is a meetup for the Ruby programming languge that I found in Philly. Meetups are the best place to meet people whom are programmers or possibly find a local mentor. You might be the youngest person there, but topics for talks will range from beginner to expert, so there will definitely be interesting things for you to hear about. More importantly its a great way to socialize and get excited about programming. It might be fun to go with a parent on your first visit just to get your footing.

This is a fantastic link blog for becoming aquianted with what companies and programmers are doing to start buisnesses in software. Everyone needs help to stay excited and engaged, a daily dose of Hackernews will keep you fresh, I read it every day.

Essential Learning Tools

@bullfight
bullfight / whatnext?.md
Last active December 21, 2015 06:08
What Next?

Community

Austin's monthly meetup of the Rails community. This is a great way to get to know the local community and to see some excellent presentaions on software development both novice and advanced. (At Capital Factory)

A Weekly meetup of developers to work, chat, and socialize over excellent coffee or beer at Houndstooth on 42nd and Lamar.

A ten week immersive course designed to teach to web development and prepare you for your first job as a developer.

class Foo
end
foo = Foo.new
=> #<Foo:0x007fca7132adc8>
foo.inspect
=> "#<Foo:0x007fca7132adc8>"
foo.to_s
=> "#<Foo:0x007fca7132adc8>"
attachments: parent_id, asset_id
domain_names: organisation_id
event_memberships: user_id, event_id
events: editor_id
group_actions: user_id, group_id
groups: user_id
icons: parent_id
invitations: sender_id
legacy_actions: item_upon_id
news_items: author_id
class Subscription
class Service
class Customer
end
end
end
class Subscription
class Service
class Referral