Skip to content

Instantly share code, notes, and snippets.

View dmackerman's full-sized avatar

Dave Ackerman dmackerman

  • Kentik Technologies - @kentik
  • Tempe, AZ
View GitHub Profile
@dmackerman
dmackerman / gist:3897242
Created October 16, 2012 04:29
date range
<?php
$now = strtotime("now");
$startDate = strtotime("13 November 2012");
$endDate = strtotime("18 November 2012");
if ($now >= $startDate && $now <= $endDate) {
echo "Date is within range!";
}
?>
<html>
<head>
<title></title>
</head>
<body>
<p>yay</p>
</body>
</html>
@dmackerman
dmackerman / index.html
Created November 29, 2012 22:17
A CodePen by Dave Ackerman.
<div class="container">
<figure class="circle download"><span>Download App</span></figure>
<figure class="circle register">Register</figure>
<figure class="circle sign-in">Sign In</figure>
<figure class="circle explore">Explore</figure>
<div class="shadow explore"></div>
<div class="shadow register"></div>
<div class="shadow sign-in"></div>
<div class="shadow download"></div>
@dmackerman
dmackerman / bitch.scss
Created December 11, 2012 22:09
My awesome gist.
/* define some variables for the blog */
$developmentColor: #458c53;
$toolsColor: #3b64a3;
$industryColor: #84438c;
$leanStartupColor: #ba414d;
$designColor: #694181;
$modusNews: #de9a4f;
::selection {
background: #F8F7C9;
@media all and (max-width: 800px) and (orientation: portrait) {
.global-toc .global-toc-featured-story .x-innerhtml {
border: 1px solid #00F;
}
}
/**
* Created with JetBrains WebStorm.
* User: stan229
* Date: 11/20/12
* Time: 3:31 PM
*/
Ext.define('Workout.view.Workout', {
extend : 'Ext.Container',
xtype : 'workout',
config : {
initialize: function() {
var me = this;
var navBar = Ext.ComponentQuery.query('navigationview')[0].getNavigationBar();
// console.log(navBar);
navBar.setItems[{
xtype: 'button',
text: 'cool'
}]
}
initialize: function() {
this.callParent();
Ext.ComponentQuery.query('navigationview')[0].getNavigationBar().add(Ext.create('Ext.Button', {
id: 'btn-data-new',
text: 'Manage',
align: 'right',
hideAnimation: { type: 'fadeOut', duration: 350 },
showAnimation: { type: 'fadeIn', duration: 350 }
}));
},
$grid-header-line-height: 24px;
$grid-base-color: $accentColor;
$grid-row-height: 30px;
$grid-row-cell-font-size: 13px;
Ext.define('Workout.store.Workouts', {
extend : 'Ext.data.Store',
config : {
model : 'Workout.model.Workout',
autoLoad : true,
proxy : {
type : 'ajax',
url : 'data/workouts.json',
reader: {
type: 'json',