Skip to content

Instantly share code, notes, and snippets.

View AndrewSepic's full-sized avatar

Andrew AndrewSepic

  • Mapbox
  • Earth, for now
View GitHub Profile
@AndrewSepic
AndrewSepic / wordpress-foundation-shortcodes.php
Last active August 29, 2015 14:27
A simple bit of Wordpress code to add Shortcodes for Foundation's Grid and buttons
<?php
/********************************/
/* SHORTCODES */
/********************************/
/* COLUMNS */
// [row]
function row_shortcode( $atts, $content = null ){
return '<div class="row">' . do_shortcode($content) .'</div>';
<?php
/**
* Template Name: Homepage
*
* Here we setup all logic and HTML that is required for the index template, used as both the homepage
* and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
*
* @package WooFramework
* @subpackage Template
*/
function fireModal(){
// Creates Modal window Markup
var modal = (function(){
var
method = {},
$overlay,
$modal,
$content,
$close;
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="http://www.viraone.com/checkout/" enctype="multipart/form-data">
<div class="col2-set" id="customer_details">
<div class="col-1">
<div class="woocommerce-billing-fields">
<h3>Billing Details</h3>
<span class="international">Outside Canada or the U.S.? <a href="mailto:info@viraone.com">Email us</a> to order.</span>
@AndrewSepic
AndrewSepic / boilerplate.sass
Created May 29, 2018 19:57
SASS BoilerPlate
/*********************
/* COLORS MIXINS
/*********************
@import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,700,900')
$font-stack: 'Lato', Helvetica, Arial, sans-serif
/* Color */
$orange: #EF7A23
<?php
/**
* Displays archive pages if a speicifc template is not set.
*
* For more info: https://developer.wordpress.org/themes/basics/template-hierarchy/
*/
get_header(); ?>
<div class="content">
<div id="programs" class="row">
<!-- Text above the programs -->
<div class="columns small-12">
<h2>Programs</h2>
<p>Yoga Mala Foundation is proud to be operating and maintaining ongoing yoga and meditation programs in partnership with the following community organizations.
<br>
<br>
Explore »</p>
<br>
function healthyliving_remove_product_cats( $query ) {
$hidden_shop_categories = get_field('hidden_shop_categories', 'option');
// Comment out the line below to hide products in the admin as well
if ( is_admin() ) return;
if ( $query->is_search ) {
$query->set( 'tax_query', array(
root@neville-clients:~# apt-get install --only-upgrade certbot
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@neville-clients:~# sudo dpkg --configure -a
Setting up linux-headers-4.4.0-151 (4.4.0-151.178) ...
Setting up linux-modules-4.4.0-151-generic (4.4.0-151.178) ...
Setting up linux-image-4.4.0-151-generic (4.4.0-151.178) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.4.0-150-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.4.0-150-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.4.0-151-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.4.0-151-generic
68.142.59.19 - - [17/Jun/2020:14:52:35 +0000] "GET /_themes/neville-web-page/nevi1011.css HTTP/1.1" 200 6676 "http://clients.nevilleco.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
68.142.59.19 - - [17/Jun/2020:14:52:35 +0000] "GET /Neville%20Header%205.jpg HTTP/1.1" 200 12367 "http://clients.nevilleco.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
68.142.59.19 - - [17/Jun/2020:14:52:36 +0000] "GET /images/bldg_windows.jpg HTTP/1.1" 200 9095 "http://clients.nevilleco.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
68.142.59.19 - - [17/Jun/2020:14:52:36 +0000] "GET /images/2008/irem_logo.jpg HTTP/1.1" 200 5187 "http://clients.nevilleco.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
68.142