Skip to content

Instantly share code, notes, and snippets.

View shanegriffiths's full-sized avatar

Shane Griffiths shanegriffiths

View GitHub Profile
@xinan
xinan / material-theme.itermcolors
Created August 1, 2015 16:18
Material Theme iTerm2 Port
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.25882352941176467</real>
<key>Green Component</key>
<real>0.21176470588235294</real>
@alicebartlett
alicebartlett / Hiring-links.md
Last active November 26, 2018 03:41
A while ago I asked twitter for resources on hiring, here are some links:
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active January 16, 2024 01:17
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@cole007
cole007 / PHP.md
Last active August 29, 2015 14:10
PHP role @asclearasmud, Bath

No recruitment agencies please. Yes, we know you’re different to all those other agencies that call unsolicited. It’s not you. It’s us. Sorry


Mid-level PHP developer (£30-40k)

We are looking for a PHP developer to assist with the delivery of content-managed and bespoke websites at our offices in the centre of Bath.

You are happiest in code, executing front-end templates and design ideas in PHP and working in a modular, methodical fashion.

@addyosmani
addyosmani / README.md
Last active July 24, 2024 10:54 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@beneverard
beneverard / attachment_rewrite.php
Last active December 29, 2015 08:19
Rewrite attachment URLs from a local version of WordPress to a remote version.
// remove username:password if you don't need htpasswd auth
add_filter('wp_get_attachment_url', function($url) {
$upload_dir = wp_upload_dir();
$file_path = str_replace(site_url() . '/wp-content/uploads', $upload_dir['basedir'], $url);
// check to see if the file exists locally first
if ( file_exists($file_path) ) {
return $url;
@LeaVerou
LeaVerou / dabblet.css
Created November 23, 2013 14:34
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@sturobson
sturobson / contract
Last active December 13, 2015 20:39
My current contract, taken and edited from Andy Clarkes 'contract killer'
Revised date: 17/02/2013
Between me, Stuart Robson (always twisted)
and you [customer name]
## Summary:
I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.
So in short;
@sturobson
sturobson / user preferences
Last active March 31, 2021 11:36
My current sublime text 2 user preferences
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"detect_slow_plugins": false,
"draw_minimap_border": true,
@beneverard
beneverard / gist:4543455
Created January 16, 2013 00:20
Do all font weight / names follow this pattern? Where 100 is hairline, etc.
100 Hairline
200 Extra Light
300 Light
400 Regular
500 Medium
600 Semibold
700 Bold
800 ???
900 Black