Skip to content

Instantly share code, notes, and snippets.

View faction23's full-sized avatar

Samuel Estok faction23

  • Victoria, BC, Canada
View GitHub Profile
@faction23
faction23 / gist:5707110
Created June 4, 2013 15:56
Tribe powershell compiler script.
$filepath=""
$compile="compiler.jar"
$jsfiles = ls $filepath -Recurse -Include *.js -Exclude *.min.js
Foreach($js in $jsfiles){$i=$js.FullName.LastIndexOf(".js")
$compressjs= $js.FullName.Remove($i)+".min.js"
java -jar $compile --compilation_level SIMPLE_OPTIMIZATIONS --define=''tribe_debug=false'' --jscomp_off=unknownDefines --js_output_file $compressjs $js.FullName
}
ls $filepath -Recurse -Include *.min.js
@faction23
faction23 / gist:8675209
Created January 28, 2014 20:04
Modify Week view height in Tribe Events Calendar
jQuery(document).ready(function ($) {
if($('.tribe-week-grid-wrapper').length){
var height = 700;
function modify_slimscroll(){
$('.tribe-week-grid-wrapper')
.unwrap()