This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# bckup.sh | |
# requires s3cmd | |
# backup db and site files to backups dir | |
# set variables | |
client='CLIENT' | |
db='DATABASE' | |
dbu='DATABASEUSER' | |
dbpw='PASSWORD' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# scaffold.sh | |
# | |
# Usage: ./scaffold.sh <dirname> | |
# Created by Jason Ingram on 7/3/15. | |
# | |
dir=$1 | |
mkdir -p $dir/{fonts,inc,dev,js,css/scss,images/{working,source}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// if CabbageCMS, include Mobile Detect class | |
include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
if ( is_plugin_active( 'cabbagecms/cabbage-cms.php' ) ) { | |
include ABSPATH . 'wp-content/plugins/cabbagecms/_/inc/mobile-detect/Mobile_Detect.php'; | |
} | |
// Put stuff in <head> | |
function header_inject() { ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @variables | |
$background-color: #000000; | |
$blue: #000000; | |
$red: #000000; | |
$border-color: #000000; | |
$font-family: sans-serif; | |
$font-light: 300; | |
$font-normal: 400; | |
$font-bold: 700; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Lato */ | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('Lato Hairline'), local('Lato-Hairline'), url(../fonts/Lato-Hairline.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Lato */ | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('Lato Hairline'), local('Lato-Hairline'), url(../fonts/Lato-Hairline.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "wordpress", | |
"version": "1.0.0", | |
"authors": [ | |
"Jason Ingram <[email protected]>" | |
], | |
"repository": { | |
"type": "git", | |
"url": "#" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function post_type_foos() { | |
$post_type = 'Foos'; | |
$singular = 'Foo'; | |
register_post_type(strtolower($post_type), | |
array( | |
'labels' => array( | |
'name' => __( $post_type ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# command to rename (move) files on DPG | |
FILES=/Live/*.tif | |
NAME='USERNAME' | |
PASSWORD='PASSWORD' | |
SERVER='SERVER' | |
DIRLIST=dirlist`date +%H%M%j`.txt | |
MOD=mod`date +%H%M%j`.txt | |
UPLOADS='/Volumes/Kerouac/SP/Stage' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('iframe').each(function(){ | |
var url = $(this).attr("src"); | |
var char = "?"; | |
if(url.indexOf("?") != -1){ | |
var char = "&"; | |
} | |
$(this).attr("src",url+char+"wmode=transparent"); |