Skip to content

Instantly share code, notes, and snippets.

View PatMurrayDEV's full-sized avatar

Pat Murray PatMurrayDEV

View GitHub Profile
@mannynotfound
mannynotfound / tweet_280_chars.md
Created September 27, 2017 04:29
tweet with 280 characters
anonymous
anonymous / my.css
Created September 26, 2017 05:19
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%}
@steventroughtonsmith
steventroughtonsmith / gist:6788b6c340a0aa52345a
Created October 27, 2015 05:19
Run OS X Screen Saver as Wallpaper
/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
@JadenGeller
JadenGeller / NSDate Emoji Clock.swift
Created August 23, 2015 05:59
Emoji Clock from NSDate 🕛
extension NSDate {
var emojiDescription: Character {
let components = NSCalendar.currentCalendar().components(.CalendarUnitHour | .CalendarUnitMinute, fromDate: self)
let clockHour = components.hour % 12
let isSecondHalfOfHour = components.minute >= 15 && components.minute < 45
switch (clockHour, isSecondHalfOfHour) {
case (0, false): return "🕛"
case (0, true): return "🕧"
@tempire
tempire / take_screenshot.swift
Created August 5, 2015 07:34
Take raw screenshot on ios with swift
func takeScreenshot(view: UIView) -> UIImageView {
UIGraphicsBeginImageContext(view.frame.size)
view.layer.renderInContext(UIGraphicsGetCurrentContext())
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil)
return UIImageView(image: image)
}
@dannolan
dannolan / spendyspendy.txt
Last active August 29, 2015 14:26
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
@pudquick
pudquick / Info.plist
Last active February 19, 2021 16:41
Instructions on how to modify the Minecraft.app for OS X to work with Java 7 (without the need for 6). See the instructions in the "ReadMe" section.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key> <string>en</string>
<key>CFBundleName</key> <string>MinecraftLauncher</string>
<key>CFBundleVersion</key> <string>1.0.1</string>
<key>CFBundleShortVersionString</key> <string>MinecraftLauncher 1.0.1</string>
<key>CFBundleExecutable</key> <string>LaunchGame</string>
<key>CFBundlePackageType</key> <string>APPL</string>
@jehiah
jehiah / iphone_messages_dump.py
Last active September 28, 2020 03:53
Script to dump out messages to csv from an iPhone Backup sqlite file
# Copyright Jehiah Czebotar 2013
# http://jehiah.cz/
import tornado.options
import glob
import os
import sqlite3
import logging
import datetime
import csv
@ScottSmith95
ScottSmith95 / Share-Sheet.html
Last active October 22, 2021 13:40
A responsive web version of iOS Share Sheets. More info: https://ScottHSmith.com/projects/share-sheets/
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
font: normal 300 1em sans-serif;
}
@biovisualize
biovisualize / index.html
Created December 20, 2012 19:48
Basic Reusable Slopegraph
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type='text/javascript' src="http://d3js.org/d3.v2.js"></script>
<script type='text/javascript' src="slopegraph.js"></script>
<style type='text/css'>
line.slope-line{
stroke:green