Skip to content

Instantly share code, notes, and snippets.

@ijadams
ijadams / showServiceDetailsSNIPPET
Created December 23, 2015 19:12
showServiceDetailsSNIPPET
include_once('/home/douglasj/public_html/core/components/services/config.php');
// Clear Code
$code='';
// Get Page Title and left column content
$qu="SELECT * FROM cust_cat_descriptions WHERE id=".$id_cust_cat_description;
$res=mysql_query($qu);
while ($au=mysql_fetch_array($res)){
$code.='<div class="service-header">';
@ijadams
ijadams / web console cool text
Created January 12, 2016 16:53
B-) text for web console B-)
var css = "text-shadow: -1px -1px hsl(0,100%,50%), 1px 1px hsl(5.4, 100%, 50%), 3px 2px hsl(10.8, 100%, 50%), 5px 3px hsl(16.2, 100%, 50%), 7px 4px hsl(21.6, 100%, 50%), 9px 5px hsl(27, 100%, 50%), 11px 6px hsl(32.4, 100%, 50%), 13px 7px hsl(37.8, 100%, 50%), 14px 8px hsl(43.2, 100%, 50%), 16px 9px hsl(48.6, 100%, 50%), 18px 10px hsl(54, 100%, 50%), 20px 11px hsl(59.4, 100%, 50%), 22px 12px hsl(64.8, 100%, 50%), 23px 13px hsl(70.2, 100%, 50%), 25px 14px hsl(75.6, 100%, 50%), 27px 15px hsl(81, 100%, 50%), 28px 16px hsl(86.4, 100%, 50%), 30px 17px hsl(91.8, 100%, 50%), 32px 18px hsl(97.2, 100%, 50%), 33px 19px hsl(102.6, 100%, 50%), 35px 20px hsl(108, 100%, 50%), 36px 21px hsl(113.4, 100%, 50%), 38px 22px hsl(118.8, 100%, 50%), 39px 23px hsl(124.2, 100%, 50%), 41px 24px hsl(129.6, 100%, 50%), 42px 25px hsl(135, 100%, 50%), 43px 26px hsl(140.4, 100%, 50%), 45px 27px hsl(145.8, 100%, 50%), 46px 28px hsl(151.2, 100%, 50%), 47px 29px hsl(156.6, 100%, 50%), 48px 30px hsl(162, 100%, 50%), 49px 31px hsl(167.4, 100%, 5
@ijadams
ijadams / zero.js
Created January 25, 2016 20:04
A reliable script for analyzing Smashing Pumpkins hits
function BillyCorgansZero() {
if (emptiness == loneliness && loneliness == cleanliness && cleanliness == godliness) {
var god = null;
var me = null;
} else {
return "despite all of my rage i'm still a rat in a cage";
}
}
<html>
<style>
#navScreen {
display: none;
width: 100%;
height: auto;
background-color: #fff;
padding: 0.5rem 0 1rem;
border-bottom: 5px solid $auraTan;
position: absolute;
# ~/.bash_profile
[[ -s ~/.bashrc ]] && source ~/.bashrc
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
alias edit='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
alias ls='ls -GFh'
alias ll='ls -l'
@ijadams
ijadams / bridge-4-hack.js
Last active May 10, 2016 20:52
Bridge 4 HACK
jQuery(function() {
if (jQuery(window).width() < 768) {
var e = jQuery(
'.q_elements_holder.two_columns.responsive_mode_from_768:nth-child(2)'
).children().last();
jQuery(e).prependTo(
".q_elements_holder.two_columns.responsive_mode_from_768:nth-child(2)"
);
}
jQuery(window).resize(function() {
@ijadams
ijadams / disable-plugin.php
Created June 10, 2016 20:25
happy learned how to put
<?php
/*
Script Name: Disable head cleaner
*/
add_filter( 'option_active_plugins', 'head_cleaner' );
function head_cleaner($plugins) {
find . -name "*.js" | xargs -n 1 rename -x -a .ts