Skip to content

Instantly share code, notes, and snippets.

View lawrencebrown's full-sized avatar
💭
Pizza

Lawrence Brown lawrencebrown

💭
Pizza
View GitHub Profile
@lawrencebrown
lawrencebrown / LIFE Promo Codes.feature
Created December 12, 2011 15:20
LIFE feature: Complimentary
Feature: Promo Codes
In order to allow certain people or organisations to purchase LIFE membership
As Josh the Business Development Director
I want the ability to create promo codes
@josh
Scenario: Josh creates a promo code
When I create a new promo code
Then I should be able to define the code phrase
And I should be able to define how many times it can be used
Feature: Complimentary Accounts
In order to cater for certain special people who promote our business
As Josh the Business Development Director
I want the ability to create special free accounts for special people
@josh
Scenario: Josh creates a complimentary account
When I create a new complimentary account for Lawrence
Then a welcome email should be sent to Lawrence
@lawrencebrown
lawrencebrown / loz-tipsy-1
Created February 7, 2012 14:36
tipsy start
<script type="text/javascript">
(function($){
$('ul.dd li').tipsy({gravity: $.fn.tipsy.autoNS});
});
</script>
<div class="pinterest">
<a href="http://pinterest.com/pin/create/button/?url={{ shop.url }}{{ product.url }}&media={{ product.featured_image | product_img_url: 'large' }}" class="pin-it-button" count-layout="horizontal">Pin It</a>
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
</div>
var adjustMenu = function() {
if (ww < 768) {
$(".toggleMenu").css("display", "inline-block");
if (!$(".toggleMenu").hasClass("active")) {
$(".nav").hide();
} else {
$(".nav").show();
}
$(".nav li").unbind('mouseenter mouseleave');
$(".nav li a.parent").unbind('click').bind('click', function(e) {
<script type="text/javascript">
$(document).ready(function() {
$('body').css('display', 'none');
$('body').fadeIn(300);
$('a').click(function() {
event.preventDefault();
newLocation = this.href;
$('body').fadeOut(300, newpage);
});
function newpage() {
<script type="text/javascript">
jQuery('iframe.vimeo').each(function(){
Froogaloop(this).addEvent('ready', ready);
});
function ready(playerID){
Froogaloop(playerID).addEvent('play', function(data) {play(playerID);});
}
function play(playerID){
alert(playerID + " is playing!!!");
Renaming a mac user
----
sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
Then: Flush the DNS cache by typing: dscacheutil -flushcache
Then: Restart your Mac
-
DONE
@lawrencebrown
lawrencebrown / New Mac Terminal Preference Changes
Created May 29, 2018 11:13
Useful stuff for customising mac
<-- Turns off bouncing applications in the dock -->
defaults write com.apple.dock no-bouncing -bool TRUE;
killall Dock
<-- Change location of Screenshots folder - drag location from finder after the word location -->
defaults write com.apple.screencapture location
killall SystemUIServer
<?php
echo '<pre>';
print_r(get_field('name_of_field'));
echo '</pre>';
die();
?>