Skip to content

Instantly share code, notes, and snippets.

View Ahrengot's full-sized avatar
🤟

Jens Ahrengot Boddum Ahrengot

🤟
View GitHub Profile
@Ahrengot
Ahrengot / dabblet.css
Created December 14, 2012 12:49
Untitled
a {
font: bold 18px/1.2 sans-serif;
text-decoration: none;
}
a:hover { font-size: 0; }
a:hover:before {
font-size: 18px;
content: attr(data-hover);
@Ahrengot
Ahrengot / open link in app
Created September 26, 2012 11:51
Prevent iOS web app's from opening internal links in safari
@Ahrengot
Ahrengot / acf-wrapper-functions.php
Created September 25, 2012 09:26 — forked from raideus/acf-wrapper-functions.php
Wrapper functions for Advanced Custom Fields
<?php
/**
* Return a custom field stored by the Advanced Custom Fields plugin
*
* @global $post
* @param str $key The key to look for
* @param mixed $id The post ID (int|str, defaults to $post->ID)
* @param mixed $default Value to return if get_field() returns nothing
* @return mixed
* @uses get_field()
@Ahrengot
Ahrengot / pumpit.js
Created July 4, 2012 11:04
Simple "pump" animation using a Greensock timeline ... Pump it!
// Pump it!
(function() {
var $el = $('#logo'), // <-- Change to whatever
canPump = true,
pumpTL = new TimelineLite({
paused: true,
onStart: function() { canPump = false; },
onComplete: function() { canPump = true; }
});
@Ahrengot
Ahrengot / proxy-twitter.php
Created June 19, 2012 19:37
twitter-proxy.php
<?php
$query = $_GET["q"];
if (!isset ($query)) echo 'NO QUERY PASSED TO TWITTER PROXY';
$cache = dirname(__FILE__) . '/cache/twitter-' . urlencode($query) . '.txt';
// How long we'll allow the cached file to live.
$cacheDur = 60 * 3;
// Check if cached file exist and if it's older than a specific number of seconds
@Ahrengot
Ahrengot / dabblet.css
Created April 12, 2012 15:13
UI COMPONENTS
/******************************************************************
UI COMPONENTS
******************************************************************/
/*
* BUTTONS
*/
/* line 177, ../sass/_default.scss */
a.btn, .widget li[id*=menu-item] a, .widget .blogroll a, button.btn {
display: block;
position: relative;
@Ahrengot
Ahrengot / dabblet.css
Created April 12, 2012 15:09
UI COMPONENTS
/******************************************************************
UI COMPONENTS
******************************************************************/
/*
* BUTTONS
*/
/* line 177, ../sass/_default.scss */
a.btn, .widget li[id*=menu-item] a, .widget .blogroll a, button.btn {
display: block;
position: relative;
@Ahrengot
Ahrengot / dabblet.css
Created April 12, 2012 15:03
FORM STYLES
/******************************************************************
FORM STYLES
******************************************************************/
/* line 1208, ../sass/_default.scss */
form {
margin-bottom: 15px;
margin-top: -10px; }
/* line 1212, ../sass/_default.scss */
form input[type=email] {
@Ahrengot
Ahrengot / bg.css
Created March 30, 2012 20:32
Full size background
body {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
// god dammit, IE.
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg.jpg', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg.jpg', sizingMethod='scale')";
@Ahrengot
Ahrengot / dabblet.css
Created March 28, 2012 09:52
Do not wrap!
/**
* Do not wrap!
*/
#wrap {
width: 100%;
height: 400px;
padding: 0;
overflow: hidden;
background: gray;