Skip to content

Instantly share code, notes, and snippets.

@deitrick
deitrick / chat.html
Created December 25, 2011 18:46
CSS3 Chat Bubble
<style type="text/css">
body {
font: normal 62.5%/1 "lucida grande", arial, sans-serif;
color: #343638;
background: url(http://www.d-trick.com/wp-content/themes/portfolio/img/bg/bg.png) repeat; }
#main {
width: 1100px;
overflow: hidden;
margin: 0 auto; }
#content {
@deitrick
deitrick / pulling-and-pushing-to-git.md
Created June 16, 2012 20:21 — forked from jtallant/pulling-and-pushing-to-git.md
Basic Unix + Pulling and Pushing to Git

UNIX Commands

pwd present working directory

ls list current directory contents

ls -la list current directory contents in long format and show hidden files

man <some unix command> Bring up the manual pages for a command. Type q to exit

@deitrick
deitrick / gist:3305598
Created August 9, 2012 16:21
odd error for sqlite on localhost
source 'https://rubygems.org'
gem 'rails', '3.2.7'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3', '1.3.5'
end
group :production do
<a href="#" class="blue-button" >Dance with me</a>
@deitrick
deitrick / index.html
Created August 28, 2012 17:22
Google chrome logo created with a single HTML element.
<code class="chrome-logo"></code>
@deitrick
deitrick / index.html
Created August 28, 2012 17:23
General Selector. Salud!
<div class="fixed">Swipe mouse over the image horizontally to see it in action:</div>
<div class="g">
<div class="h"></div>
<div class="h"></div>
<div class="h"></div>
<div class="h"></div>
<div class="h"></div>
<div class="h"></div>
<div class="h"></div>
@deitrick
deitrick / MBO
Created August 30, 2012 19:56
Mindbody API Integration
<?php
include_once('MINDBODY_API_v0.5.php');
$mb = new MINDBODY_API();
$tomorrow = date('Y-m-d\TH:i:s', strtotime("tomorrow")); // note for MINDBODY you have to format your dates in the standard ISO 8601 format but without the timezone offset
$thirtydays = strtotime(date("Y-m-d", strtotime($tomorrow)) . " +30 days");
$params = array(
"StartDateTime"=>$tomorrow,
"EndDateTime"=> $thirtydays
);
<body>
<a class="button" href="#">Click Me Please</a>
<a class="button" href="#">Click Me Please</a>
<a class="button" href="#">Click Me Please</a>
<a class="button" href="#">Click Me Please</a>
<a class="button" href="#">Click Me Please</a>
<a class="button" href="#">Click Me Please</a>
</body>
@deitrick
deitrick / index.html
Created October 10, 2012 20:51
HTML CSS LOGO of intridea. Not perfect, but yeah...
<p><span>i</span></p>
@deitrick
deitrick / gist:4091067
Created November 16, 2012 21:26
Something funky going on...
# I'm getting an empty result when viewing this in my application; testing on /project/2/ page
<% if @project.quickbits.present? %>
<div class="accordion">
<% @project.quickbits.where(user_id: 1).each do |bit| %>