Skip to content

Instantly share code, notes, and snippets.

View thomasplevy's full-sized avatar
🍗
I'm Hungry

Thomas Patrick Levy thomasplevy

🍗
I'm Hungry
  • Moose Town Media Business Company
  • Phoenix, AZ
  • 11:55 (UTC -07:00)
View GitHub Profile
@thomasplevy
thomasplevy / llms-remove-notifications.php
Created April 20, 2018 15:25 — forked from actual-saurabh/llms-remove-notifications.php
Remove frontend notifications from LifterLMS
<?php // Do not copy this line
// Copy from under this line and paste into your child theme's functions.php
add_action( 'init', 'llms_turn_off_notifications', 10, 999 );
add_action( 'wp_enqueue_scripts', 'llms_dequeue_notification_script', 10, 999 );
if ( ! function_exists( 'llms_turn_off_notifications' ) ){
function llms_turn_off_notifications(){
@thomasplevy
thomasplevy / lifterlms-custom-profile-fields-add.php
Last active July 9, 2018 14:46 — forked from tpkemme/lifterlms-custom-profile-fields.php
Custom Fields added to LifterLMS Registration/Checkout
<?php // don't copy this line to your functions.php file
/**
*
* Create Company Industry as a custom field upon registration or checkout
*
* @param $fields - fields already being registered
* @param $screen - either checkout or registration screen
* @return $fields - array with added field
*/
function add_company_industry_lifterlms ( $fields , $screen ) {
@thomasplevy
thomasplevy / dabblet.css
Created June 10, 2012 16:15 — forked from anonymous/dabblet.css
css3 slash images
/**
* css3 slash images
*/
div {
position: relative;
margin: 25px;
}
div:before {
@thomasplevy
thomasplevy / gist:2495624
Created April 26, 2012 03:45
PHP: mysql_query
$result = mysql_query("SELECT * FROM $table");
if(!$result) { die("SOMETHING BROKE!"); }
while($row = mysql_fetch_array($result)) {
echo '
'.$row['row'].'
';
}
@thomasplevy
thomasplevy / gist:2495621
Created April 26, 2012 03:45
LESS: CSS3 MIXINS
.gradient(@args){
background-image: -webkit-linear-gradient(@args);
background-image: -moz-linear-gradient(@args);
background-image: -ms-linear-gradient(@args);
background-image: -o-linear-gradient(@args);
background-image: linear-gradient(@args);
}
.border-radius(@args){
-webkit-border-radius: @args;
-moz-border-radius: @args;
@thomasplevy
thomasplevy / gist:2495620
Created April 26, 2012 03:45
CSS: normalize
/*! normalize.css 2011-11-04T15:38 UTC - http://github.com/necolas/normalize.css */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}html{font-size:100%;overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}body,button,input,select,textarea{font-family:sans-serif}a{color:#00e}a:focus{outline:thin dotted}a:hover,a:active{outline:0}h1{font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}mark{background:#ff0;color:#000}pre,code,kbd,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:75%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-
@thomasplevy
thomasplevy / html5.haml
Created April 26, 2012 03:43
HAML: HTML5/HAML/SINATRA STARTER
!!!
%html{ :lang => 'en'}
%head
%title= @title
%meta{ :charset => 'utf-8' }
%meta{ :content => '', :name => 'description' }
%meta{ :content => '', :name => 'author' }
%link{ :rel => 'stylesheet', :href => '/css/style.css' }
%script{ :src => 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' }