Skip to content

Instantly share code, notes, and snippets.

View t0nylombardi's full-sized avatar
🌮
Eating Tacos and Coding

Anthony Lombardi t0nylombardi

🌮
Eating Tacos and Coding
View GitHub Profile
#!/usr/bin/env ruby
APP_ROOT = File.dirname(__FILE__)
$:.unshift(File.join(APP_ROOT, 'lib') )
require 'utility'
require 'rvm'
require 'brew'
require 'ruby'
require 'osx'
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"
# Uncomment the following line to use case-sensitive completion.
# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'
# Basic directory operations
alias ...='cd ../..'
alias -- -='cd -'
# Super user
alias _='sudo'
@t0nylombardi
t0nylombardi / omniauth_controller.rb
Last active May 5, 2016 23:49
Code For OmniAuth
## omniauth_controller
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def facebook
@auth = request.env["omniauth.auth"]
@user ||= User.find_for_facebook_oauth(@auth)
if @user.persisted?
@t0nylombardi
t0nylombardi / developerQuestions.md
Last active May 2, 2016 12:32
Developer interview questions.
  • know the difference between HTML and HTML5.
  • Whats the difference between JS and jQuery.
  • What is Object Oriented Programing
  • Whats the benefit of OOP?
  • Do you understand Cascading Style Sheets?
  • Have you worked with version control and software?
  • What is SCRUM ?
  • Can You work on your own ?
  • Have you worked with command line interfaces?
  • Do you know the Ruby Language?
module Tracker
class Rack
def initialize(app)
@app = app
end
def call(env)
@req = ::Rack::Request.new(env)
if @req.path_info =~ /tracker.gif/
result = Services::Params.decode(@req.query_string)
File.open("url_links_04282016-PALM.html", "w+") do |f|
HTML_START = <<-EOS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
EOS