Skip to content

Instantly share code, notes, and snippets.

View noeltock's full-sized avatar
🚀
Ship it.

Noel Tock noeltock

🚀
Ship it.
View GitHub Profile
@noeltock
noeltock / header.php
Created October 9, 2012 13:41
header
<!-- Grid image system -->
<div id="ri-grid" class="ri-grid ri-grid-size-3">
<ul>
<?php
/**
* Images are saved 1.jpg to 50.jpg, looping their display.
*/
@noeltock
noeltock / functions.php
Created October 3, 2012 09:55
wp-less to style.css
add_filter( 'wp_less_cache_path', 'my_less_cache_path' );
add_filter( 'wp_less_cache_url', 'my_less_cache_url' )
function my_less_cache_path( $path ) {
return get_stylesheet_directory();
}
function my_less_cache_url( $url ) {
return get_stylesheet_directory_uri();
}
/* Foundation
* ----------------------------------------------------------------- */
@import "prometheus/prometheus.less";
@import "prometheus/less/1140.less";
/* Site
* ----------------------------------------------------------------- */
@import "less/variables.less";
@noeltock
noeltock / gist:1768338
Created February 8, 2012 11:29
happytables - criticial launch tasks
happytables - launch
(pre-launch & domain switch: 19th of Feb, testers over weekend)
Goals:
---------------------------------------------
- Full Conversion to HT
- Clear message across entire service
- Dummyproof Onboarding Process
@noeltock
noeltock / gist:1555620
Created January 3, 2012 16:24
example for tweet
function load_fail_js()
{
wp_enqueue_script('mordernizr', THEME_URL . '/js/modernizr.js');
wp_enqueue_script('kerning', THEME_URL . '/js/kerning.min.js');
wp_enqueue_script('less', THEME_URL . '/js/less-1.1.3.min.js', array('jquery'));
wp_enqueue_script('waypoints', THEME_URL . '/js/waypoints.min.js');
wp_enqueue_script('gmaps', 'http://maps.google.com/maps/api/js?sensor=false');
wp_enqueue_script('gmap3', THEME_URL . '/js/gmap3.min.js');
}
add_action('wp_print_scripts', 'load_fail_js');
// Edit term page
function brewery_edit_meta_field($term) {
// Address
$address = get_metadata($term->taxonomy, $term->term_id, 'brewery_address', true);
$lat = get_metadata($term->taxonomy, $term->term_id, 'brewery_lat', true);
$long = get_metadata($term->taxonomy, $term->term_id, 'brewery_long', true);
Hi [firstname, fallback=there],
We're really excited to have you on-board for our awesome service,
especially when you have the opportunity to lock in at such a low
rate.
You can log in right away and try out all the different features!
There are no limits during our free trial, you can even use the website
with your real domain, the choice is yours!
@noeltock
noeltock / gist:1292419
Created October 17, 2011 11:19
TF To Do List
TF To Do list - Pre Launch
Goals:
---------------------------------------------
- Clear message across entire service
- Dummyproof Onboarding Process
- Easy to use & well documented Features
To do's (prioritized):
@noeltock
noeltock / nivorandom.html
Created October 7, 2011 20:18
Nivo Random Starting Slide
You'll find this in header.php:
<!-- / Nivo Slider -->
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('#slider').nivoSlider({
effect:'fade',
pauseTime:'3000',
boxCols: 8, // For box animations
boxRows: 3, // For box animations
@noeltock
noeltock / 3.2 Release Notes
Created June 9, 2011 05:29
New stuff from Theme Force
Framework (affects all themes)
Features
========
- Yelp Bar & Foursquare Widgets Added
- Accepted Payments Widget Added
- Opening Times Widget Added
- Google Maps Widget Added
- Single Event Pages Added