Skip to content

Instantly share code, notes, and snippets.

View bradlucas's full-sized avatar

Brad Lucas bradlucas

View GitHub Profile
@bradlucas
bradlucas / gist:1233763
Created September 22, 2011 00:53
find-new-members
(defn find-new-members
"Return the new people are only in the new-list but not in the current-list.
Both lists are lists of maps where they have at least :first_name and :last_name keys.
"
[current-list new-list]
(let [existing (set (remove #(nil? (second %)) (map (juxt :first_name :last_name) current-list)))]
(remove #(existing ((juxt :first_name :last_name) %)) new-list)))
@bradlucas
bradlucas / *github:gists*
Last active April 29, 2019 21:48
solution to Nth Element ;; https://4clojure.com/problem/21
04e7022... 04/06/16 17:11 private Recent Proximo Traffic
6e2d3d6... 03/30/16 10:53 private Pipeline Release 1.0.15 configration changes
449e987... 03/23/16 16:56 private Supersonic edn change notes
b0180b4... 03/23/16 14:10 private Pipeline Release 3-28-2015 configuration changes
b38895e... 03/17/16 10:05 private mehmet-query.sql
194b163... 03/16/16 14:02 private Pipeline configuration settings
4a5af98... 03/04/16 14:32 public get-all-first-commit-authors-repos.sh
c77b5cf... 03/04/16 13:57 public get-all-first-commit-authors.sh
f1feb63... 03/04/16 13:41 public Get first git commit
9b0449f... 03/03/16 13:37 private Heroic Apps Chart (Text Version)
@bradlucas
bradlucas / gist:5708933
Created June 4, 2013 19:47
Fixes issue with tablesorter scroller showing the first table's header as the header for all subsequent pages
/*
Copyright (C) 2011 T. Connell & Associates, Inc.
Dual-licensed under the MIT and GPL licenses
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@bradlucas
bradlucas / Pipeline Eclipse Notes
Last active April 12, 2016 19:01
Pipeline Eclipse Notes
# Introduction
The following are some notes on setting up a development environment for the Pipeline Java projects.
An assumption is made that you are on a Mac and are going to use Eclipse.
Steps
- Install the latest Eclipse
- Clone all the ActionX repos
- Setting up projects in Eclipse
@bradlucas
bradlucas / git-flow-pattern.md
Last active May 2, 2016 16:38
git-flow-pattern.md

"Git is easy to learn and has a tiny footprint with lightning fast performance."

That said you can always learn more.

The more you undertand and use something the more transparent it will be.

If you find yourself struggling with a tool you need to work more with it. Practice.

@bradlucas
bradlucas / simple-git-flow-enhancements.sh
Last active May 3, 2016 13:53
simple-git-flow-enhancements.sh
#!/bin/bash
# --------------------------------------------------------------------------------
#
# The following functions assume that you have installed the Git Flow Extensions
# available here:
#
# https://github.com/petervanderdoes/gitflow-avh
#
# On a Mac simply enter the following from a Terminal window
@bradlucas
bradlucas / release-procedures.md
Last active April 12, 2016 18:57
release-procedures.md

Release Procedures

Some Rules

  • No releases after hours unless previously negotiated

  • Reponsible parties need to be present during the release

    • ie, Developer and Ops
  • Different systems have different release requirements

@bradlucas
bradlucas / get-first-commit-log.sh
Last active April 27, 2016 13:38
get-first-commit.sh
#!/bin/sh
# @see http://stackoverflow.com/a/5189296
git log $(git rev-list --max-parents=0 HEAD)
@bradlucas
bradlucas / get-all-first-commit-authors.sh
Last active April 12, 2016 18:56
get-all-first-commit-authors.sh
#!/bin/sh
(for f in `find . -maxdepth 1`;
do
pushd > /dev/null $f
get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' '
popd > /dev/null
done) | sort --ignore-case | uniq
@bradlucas
bradlucas / get-all-first-commit-authors-repos.sh
Last active April 12, 2016 18:56
get-all-first-commit-authors-repos.sh
#!/bin/sh
# For each Repo show Author and the Repo Name
(for f in `find . -maxdepth 1`;
do
pushd > /dev/null $f
echo "$(get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' ') : $f"
popd > /dev/null
done)