Skip to content

Instantly share code, notes, and snippets.

View darrinhenein's full-sized avatar

Darrin Henein darrinhenein

View GitHub Profile
private func updateLayoutForEditing(#editing: Bool) {
self.progressBar.hidden = editing
self.editTextField.hidden = !editing
self.locationContainerConstraints.uninstall()
if editing {
self.locationContainer.snp_updateConstraints { make in

Keybase proof

I hereby claim:

  • I am darrinhenein on github.
  • I am darrin (https://keybase.io/darrin) on keybase.
  • I have a public key whose fingerprint is 57E6 93CC 3945 AE63 60C0 B10B B704 B58C 7D6F 7A6C

To claim this, I am signing this object:

@darrinhenein
darrinhenein / rgb_shader.fsh
Created March 6, 2014 15:33
RGB Split Shader
form sampler2D CC_Texture0;
varying vec2 v_texCoord;
uniform float u_displacement;
void main( ) {
vec4 color = texture2D( CC_Texture0, v_texCoord );
vec2 DisplacementScroll = vec2(u_displacement, -u_displacement);
vec2 texCoord2 = v_texCoord + DisplacementScroll;
DisplacementScroll = vec2(-u_displacement, u_displacement);
# HG changeset patch
# Parent 01d7be943857acf43286cdb6aff94f802fcba4fd
# User Darrin Henein <[email protected]>
Bug 969592 - Restyle Bookmarks Menu Popups
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -1089,29 +1089,32 @@ let BookmarkingUI = {
let getPlacesAnonymousElement =
@darrinhenein
darrinhenein / BookmarkAnimation.patch
Last active August 29, 2015 13:55
Bookmark Animation Patch
# HG changeset patch
# Parent 85b7689257760bf80e31ba3030291899f05e06eb
# User Darrin Henein <[email protected]>
Bug 931343: Australis - Implement bookmarking animation.
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -948,16 +948,22 @@ let BookmarkingUI = {
if (widget.overflowed)
@darrinhenein
darrinhenein / mediaquerysample.html
Created February 10, 2012 14:54
Media Query Sample
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 320px)" href="mobile.css" />
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 768px)" href="tablet.css" />
<link rel="stylesheet" type="text/css" media="screen" href="desktop.css" />