Skip to content

Instantly share code, notes, and snippets.

View jcarouth's full-sized avatar

Jeff Carouth jcarouth

View GitHub Profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
oh noes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJXDZj7AAoJEEllxC7B+rMNzNkP/3jirRKu1HLDwd1GKz0fxTwo
9kYy9lItdYOzv7gMl+cTbdfyJyUA75GJBdks+xKO171Gg4xuo8O3ODALw3//OsVc
QfGTK3Qxky3M5dm9W54Lm8Xy0vX0HmmHruUGTxsg6wwk3j6Mn1qXSmPgQYzVxsUx
SELECT GROUP_CONCAT(LETTERS_YO SEPARATOR '') as ME
FROM (
SELECT DISTINCT t1.LETTERS_YO FROM (SELECT 'A' AS LETTERS_YO UNION SELECT 'B' UNION SELECT 'D') as t1
INNER JOIN
(SELECT * FROM(SELECT 'A' UNION SELECT 'B' UNION SELECT 'C' UNION SELECT 'D') as t2) as t3
ORDER BY LETTERS_YO DESC
) AS t4

Git and Github: Working Effectively on a Team

Abstract

Git is great. Project hosting on Github is even better. But how does git fit into your team workflow? In this talk we will cover how to effectively use git as your source control management system from an individual developer's perspective and then from a team perspective.

You will learn how to efficiently use git during feature implementation and experimentation including stashing, committing, rebasing, and code sharing techniques; how you can leverage Github to spur conversations about code and implementation; and a workflow incorporating code review using Github's pull requests.

Notes

unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
unbind 1
@jcarouth
jcarouth / SecretProject.php
Created October 4, 2015 20:36
Secret Project with 100% test coverage
<?php
class SecretProject
{
public function run()
{
return true;
}
}
#!/bin/bash
# Aliases
alias gcl='git clone'
alias ga='git add'
alias gall='git add .'
alias g='git'
alias get='git'
alias gst='git status'
alias gs='git status'
<?php
try {
//snip
try {
something_that_throws();
} catch (Exception $e) {
throw $e;
}
//snip
} catch (Exception $e) {
Jeff Carouth is a web application developer honing his programming and skiing skills at Liftopia. He is an
active member of the PHP community, speaker, co-organizer of BCSPHP, and co-host of the Loosely Coupled
podcast. He believes quality code, testing, and automation are necessary ingredients in a recipe for a
successful software project. When not hacking away at code he is a father and husband, beer and Scotch
enthusiast, and an amateur photographer. Follow Jeff on Twitter as jcarouth or read his blog at
http://carouth.com
Verifying that +jcarouth is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jcarouth
@jcarouth
jcarouth / app.rb
Last active August 29, 2015 14:07
class Character
attr_accessor :name
def initialize(attributes = {})
attributes.each do |attr, value|
setter = "#{attr}="
send(setter, value) if self.respond_to?(setter)
end
end
end