Skip to content

Instantly share code, notes, and snippets.

View jhartman86's full-sized avatar

Jono Hartman jhartman86

  • The Zero Card
  • Denver
View GitHub Profile
<html>
<head>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<style type="text/css">
* {box-sizing:border-box;}
html, body {font-size:14px;width:100%;height:100%;margin:0;padding:0;}
.tabular {width:100%;height:100%;display:table;}
.cellular {width:100%;height:100%;display:table-cell;vertical-align:middle;text-align:center;}
.container {text-align:right;position:relative;display:inline-block;width:100%;max-width:90%;}
main {padding:1rem;text-align:left;font-size:1rem;line-height:1;position:absolute;top:0;left:0;bottom:0;width:65%;}
/**
* Consider this function the place where you go through and customize things
* after an external script has created some defaults, but you need to customize
* things. Everything has to occur w/in this function. If there are things you
* would change entirely to make it more understandable, do so. Also, assume you
* can use the latest ECMA script standards (no shitty IE8 support, or 9 for
* that matter).
*/
runtime.initialize(function( $, markupData ){
@jhartman86
jhartman86 / js-sample-solution.js
Last active August 29, 2015 14:27
Solutions for js skill set evaluation
/**
* Consider this function the place where you go through and customize things
* after an external script has created some defaults, but you need to customize
* things. Everything has to occur w/in this function. If there are things you
* would change entirely to make it more understandable, do so. Also, assume you
* can use the latest ECMA script standards (no shitty IE8 support, or 9 for
* that matter).
*/
runtime.initialize(function( $, markupData ){
@jhartman86
jhartman86 / Vagrant
Created April 9, 2015 01:14
time query with advanced repeaters
SET @startDate='2015-03-01';
SET @dayLimit='7';
SET @calendarIDs='1,2';
SELECT
_eventList._syntheticDate,
_eventList.eventID,
_eventList.eventTimeID,
_eventList.computedStartUTC,
@jhartman86
jhartman86 / after_exec.php
Created March 12, 2015 22:31
proxy class generation utility
#!/usr/bin/env php
<?php
use Concrete\Core\Cache\Cache;
use Concrete\Core\Package\Package;
// Setup as ephemeral cache during install; error logging, constant definitions
require_once(__DIR__ . '/_shared.php');
fwrite(STDOUT, "\n************* BEGINNING AFTER_EXEC HOOK *************\n");
@jhartman86
jhartman86 / concrete.php
Created January 29, 2015 18:34
Swap In Redis as the cache store
<?php
return array(
'debug' => array(
'detail' => 'debug'
),
'cache' => array(
'levels' => array(
'expensive' => array(
'drivers' => array(
@jhartman86
jhartman86 / ajax_data.php
Created January 22, 2015 17:41
Concrete5.7 package progress
<?php
/**
* Ajax data accessors
*/
namespace Concrete\Package\Focal\Ajax {
defined('C5_EXECUTE') or die(_("Access Denied."));
use Controller;
class Data extends Controller {
<?php
namespace Concrete\Package\Focal\Theme\Focalize;
class PageTheme extends \Concrete\Core\Page\Theme\Theme {
protected $pThemeGridFrameworkHandle = 'bootstrap3';
public function __construct(){
parent::__construct();
}
@jhartman86
jhartman86 / controller.php
Created November 11, 2014 22:57
Concrete5.7 Package Controller
<?php
namespace Concrete\Package\Focal;
use Loader;
use Package;
use PageType;
use PageTemplate;
use Concrete\Core\Page\Theme\Theme;
use Concrete\Core\Page\Type\PublishTarget\Type as PublishTargetType;