Skip to content

Instantly share code, notes, and snippets.

Adrian Palmer navitronic

Block or report user

Report or block navitronic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3719206
.bg-item {
background: transparent url(img/background-sprite.png) no-repeat 0 0;
position: absolute;
display: block;
}
.circle {
.sprite(50px, 49px, 0, 0);
}
@navitronic
navitronic / plugins.json
Created Sep 7, 2012
Plugin installer script
View plugins.json
{
"debug-bar" : "0.8",
"debug-bar-cron" : "0.1.2",
"developer" : "1.0.0",
"jetpack" : "1.7",
"limit-login-attempts" : "1.7.1",
"log-deprecated-notices" : "0.2",
"monkeyman-rewrite-analyzer" : "1.0",
"monster-widget" : "0.1",
"more-fields" : "2.1",
@navitronic
navitronic / maybe.css
Created Jul 25, 2012
This might work...
View maybe.css
.right-bg{
position: relative;
width: 640px;
height: 480px;
}
.right-bg:after{
display: block;
position: absolute;
right: 10px;
z-index: -1;
@navitronic
navitronic / july-meetup.md
Created Jul 10, 2012
Melbourne SF2 July Meetup
View july-meetup.md

Agenda:

  • Introductions / etc
  • Lightning 5 min talk about Symfony 2.1 by Sam J

Coding exercise - Build a blog

  1. Make sure that Symfony is working and you have the default vendors installed on your laptop / environment
  2. Find and run app/console
  3. Use app/console to generate a bundle for you to work with tonight
@navitronic
navitronic / r-boilerplate.css
Created Apr 12, 2012
Responsive CSS boilerplate
View r-boilerplate.css
/* Mobile / General Styles
---
Code up general styles and mobile styles, use media queries to adapt to larger displays.
Things for this section: Reset, Typography, Baseline grid, etc. Convenience methods for image-replacement, hiding, clearing etc.
*/
/* Desktop and iPad/Tablet specific styles. */
@navitronic
navitronic / gist:2364646
Created Apr 12, 2012
f*ck trying to make a responsive grid
View gist:2364646
<div class="something">
<div class="third">first child, no left padding.</div>
<div class="third">left padding</div>
<div class="third something">
left padding
<div class="half">first child, no left padding</div>
<div class="half">left padding.</div>
</div>
</div>
View export-table.php
<?php
/*** mysql hostname ***/
$hostname = 'localhost';
$dbname = 'dbname';
/*** mysql username ***/
$username = 'username';
View gist:1445318
/**
* @Route("/school/search/", name="school_search")
* @Template("FlintSAKGFKitchenGardenProfileBundle:Default:school-search.html.twig")
* @param \Symfony\Component\HttpFoundation\Request $request
* @return array
*/
public function searchAction(Request $request)
{
View gist:794452
$(function(){
/// fun times :D
});
@navitronic
navitronic / gist:758177
Created Dec 29, 2010
PHP Code to remove Google Analytics cruft from urls
View gist:758177
<?php
preg_replace('/(\?|\&)?utm_[a-z]+=[^\&]+/', '', 'http://mashable.com/2010/12/14/android-quick-start-guide/?utm_source=twitterfeed&utm_medium=twitter&utm_campaign=Feed%3A+Mashable+%28Mashable%29');
// Returns http://mashable.com/2010/12/14/android-quick-start-guide/
# 100 urls to test against
# ========================
#
# http://activeinboxhq.com/?utm_medium=Argyle+Social&utm_source=TweetDeck&utm_content=http=//activeinboxhq.com/
You can’t perform that action at this time.