This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"profile": { | |
"name": "Marco", | |
"surname": "Hamersma", | |
"date-of-birth": "617950800", | |
"age": 21, | |
"hometown": "Oud-Beijerland", | |
"location": "Berlin, Germany", | |
"tagline": "Dutch. 21. Student Communication & Multimedia Design, Interaction Designer & Creative developer, likes making awesome stuff & playing guitar. Intern @SoundCloud", | |
"work": [{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def app_link_for_user(app) | |
if app.public? | |
app_path(app) | |
elsif app.user == current_user | |
self_edit_app_path(app) | |
else | |
app.url | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Roelven | |
email = [email protected] | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
ui = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue Javascripts | |
// Replace jQuery 1.4.4 with 1.5 on the frontend | |
// as seen on http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
// Do not do this on the wp-admin, jQuery 1.5 might break functionality at this point (March 2011) | |
function rv_enque_scripts() { | |
// get theme to use that for versioning and cache busting | |
$theme = get_theme(get_current_theme()); | |
if (!is_admin()) { | |
// remove jQuery 1.4.4 | |
wp_deregister_script('jquery'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function myLog($message) { | |
try { | |
$logDir = getcwd(); | |
$logFile = fopen("$logDir/efa.txt", "a"); | |
$timeStamp = date("ymd-His"); | |
fwrite($logFile, ":: [$timeStamp] ::\n$message\n\n"); | |
fclose($logFile); | |
} catch (Exception $e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this snippet to load a stylesheet in the Wordpress way, accessible to other plugins: | |
// Credit http://www.nkuttler.de/post/wordpress-style-version-conditional-comments/ | |
if (!is_admin()) { | |
$theme = get_theme(get_current_theme()); | |
wp_register_style($theme['Template'], get_bloginfo('stylesheet_url'), false, $theme['Version']); | |
wp_enqueue_style($theme['Template']); | |
} | |
// This will look like this: | |
// <link rel='stylesheet' id='[TEMPLATENAME]-css' href='http://[YOURDOMAIN]/wp-content/themes/[YOURTHEME]/style.css?ver=0.1' type='text/css' media='all' /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="description" content="Frozen Yoghurt" /> | |
<meta content="width=device-width" name="viewport" /> | |
<title>EFAs</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove scripts from the wp script queue: | |
// credit http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles | |
function rv_deregister_javascript() { | |
wp_deregister_script('comment-reply'); | |
wp_deregister_script('l10n'); | |
} | |
// Replace jQuery 1.4.4 with 1.5 on the frontend | |
// as seen on http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
// Do not do this on the wp-admin, jQuery 1.5 might break functionality at this point (March 2011) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline) | |
// v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark | |
// html5doctor.com/html-5-reset-stylesheet/ | |
// | |
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video | |
margin: 0 | |
padding: 0 | |
border: 0 |