Skip to content

Instantly share code, notes, and snippets.

var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
.clear{clear:both}.nobr{white-space:nowrap}div.pp_woocommerce .pp_content_container{background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);padding:60px 0 40px 0}div.pp_woocommerce .pp_content_container:after{content:"";display:block;clear:both}div.pp_woocommerce .pp_loaderIcon{background:url(../images/ajax-loader.gif) center no-repeat}div.pp_woocommerce div.ppt{display: none;}div.pp_woocommerce .pp_gallery ul li a{border:1px solid rgba(0,0,0,0.5);background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-moz-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;display:block}div.pp_woocommerce .pp_gallery ul li a:hover{border-color:#000}div.pp_woocommerce .pp_gallery ul li.selected a{border-color:#000}div.pp_woocommerce .pp_arrow_previous:before,div.pp_wooc
@jzmwebdevelopment
jzmwebdevelopment / fun.php
Created November 29, 2012 00:42
Full Function
public function propertyDetailsSections()
{
$categoryDetails = $this->createCategoryDetails();
$open2ViewInformation = $this->getOpen2ViewInfotmation();
$category = array();
foreach ($categoryDetails as $id) {
$Json = file_get_contents('http://api.trademe.co.nz/v1/Listings/'.$id['listingId'].'.json');
@jzmwebdevelopment
jzmwebdevelopment / view.php
Created November 27, 2012 19:50
view function
public function test($mainCat, $subCat)
{
if($mainCat && $subCat == 'foo/bar')
{
$this->load->view('');
}
}
@jzmwebdevelopment
jzmwebdevelopment / url.php
Created November 23, 2012 22:06
url function
public function test()
{
$detailsFunction = $this->createCategoryDetails();
$ld = array();
$details = array();
foreach ($detailsFunction as $main)
{
$mainlisting = $main['listingId'];
@jzmwebdevelopment
jzmwebdevelopment / function.php
Created November 19, 2012 02:54
Ramblings on
public function test()
{
$getCategory = $this->getTMCatInfomation();
$getListCategory = $this->getTMMemberListings();
$listingCat = array();
foreach ($getListCategory as $main)
{
$listingCat[] = array('listingCategory' => $main['listingCategory'],
@jzmwebdevelopment
jzmwebdevelopment / add.php
Created August 11, 2012 05:31
add function
public function add()
{
$this->form_validation->set_rules('add_fields_name', 'Name', 'trim|required|xss_clean');
$this->form_validation->set_rules('add_fields_value', 'Value', 'trim|xss_clean');
$this->form_validation->set_rules('add_fields_class', 'Class', 'trim|xss_clean');
$this->form_validation->set_rules('add_fields_placeholder', 'Placeholder', 'trim|required|xss_clean|callback_dropdown_check');
$this->form_validation->set_rules('add_fields_type', 'Type', 'trim|required|xss_clean|callback_dropdown_check');
<body>
<?php
$login = '1236567';
$password = '10152930';
$officeNumber = array('0212177899','027899899','09111');
?>
<div id="wrapper">
<form method="POST" action="https://live.domain.co.nz/call.php?login=<?php echo $login; ?>&password=<?php echo $password; ?>&aparty=<?php echo $number; ?>phone&bparty=<?php echo $number;?>">
<?php
echo '<label for="officeNumbers">Office Number: </label>';
@jzmwebdevelopment
jzmwebdevelopment / gist:2155911
Created March 22, 2012 04:27
Wordpress Template CSS
/*
-----------------------------------------------------------------------------------
1. CSS Reset
2. Fonts
3. Body, link and image common rules
4. Typography
5. General Layout
6. Left Pane Layout
7. Navigation
@jzmwebdevelopment
jzmwebdevelopment / common.js
Created November 23, 2011 19:50
The Trading House Product.tpl and Common.js
$(document).ready(function() {
/* Search */
$('.button-search').bind('click', function() {
/*url = 'index.php?route=product/search';*/
url = 'search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);