Skip to content

Instantly share code, notes, and snippets.

View PatMurrayDEV's full-sized avatar

Pat Murray PatMurrayDEV

View GitHub Profile
@PatMurrayDEV
PatMurrayDEV / spendyspendy.txt
Last active August 29, 2015 14:26 — forked from dannolan/spendyspendy.txt
Top Entitlement Claiming Federal Politicians in Australia (2H 2014)
Top Spenders OVERALL
The Hon Tony Abbott MP - $1057673
The Hon Julie Bishop MP - $866653
Mr Tony Pasin MP - $851482
Mr Tim Watts MP - $556863
The Hon Andrew Robb AO MP - $539247
The Hon Darren Chester MP - $529344
Mr Wyatt Roy MP - $526258
Senator the Hon Simon Birmingham - $523191
@PatMurrayDEV
PatMurrayDEV / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@PatMurrayDEV
PatMurrayDEV / Sync gh-pages + master branches
Created November 2, 2015 10:39 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>DriveSafe</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Base css, but you'll likely want to keep them -->
<link rel="stylesheet" href="css/reset.css" type="text/css">
<!-- Your custom files -->
@PatMurrayDEV
PatMurrayDEV / Change iTunes Count.scpt
Last active June 29, 2020 07:46
Manually update play count for songs in iTunes
tell application "iTunes"
set sel to selection
repeat with track in sel
set trackname to the name of track
set dialog_answers to display dialog "Enter a new play count for " & trackname & ":" default answer ""
set newcount to text returned of dialog_answers as integer
if button returned of dialog_answers is "OK" then
set played count of t to newcount
end if
end repeat
@PatMurrayDEV
PatMurrayDEV / my.css
Created September 26, 2017 05:31 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(222deg, #d3555c, #f48d3a, #fdc753, #70bc53, #249cd5, #9d61a4);
background-size: 1200% 1200%;
-webkit-animation: GradientScroll 30s ease infinite;
-moz-animation: GradientScroll 30s ease infinite;
-o-animation: GradientScroll 30s ease infinite;
animation: GradientScroll 30s ease infinite;
@-webkit-keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
@PatMurrayDEV
PatMurrayDEV / tweet_280_chars.md
Created September 28, 2017 01:35 — forked from mannynotfound/tweet_280_chars.md
tweet with 280 characters
background: linear-gradient(#ffffff 50%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, white 50%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, white 50%, rgba(255,255,255,0) 0) 55px 0,
radial-gradient(circle closest-side, white 30%, rgba(255,255,255,0) 0) 110px 0,
radial-gradient(circle closest-side, white 45%, rgba(255,255,255,0) 0) 165px 0,
radial-gradient(circle closest-side, white 45%, rgba(255,255,255,0) 0) 330px 0 #48B;
background-size:220px 200px;
background-repeat:repeat-x;
@PatMurrayDEV
PatMurrayDEV / open_graph.rb
Last active October 6, 2018 23:49
Dynamically Generated Open Graph Images in Jekyll
require 'rmagick'
require 'rickshaw'
module Jekyll
class OGFilter < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text