Skip to content

Instantly share code, notes, and snippets.

View mojaray2k's full-sized avatar

Amen Moja Ra mojaray2k

  • Miami, Fl
View GitHub Profile

Susy Tutorial

For this tutorial I'm assuming you are already comfortable with CSS, Sass (I'll use the SCSS syntax) and Compass. Please get set up with each one of those before attempting to use Susy. Sass and Compass both have their own setup instructions and tutorials that you can use.

There is also reference documentation in the works.

What Susy Does

CSS Systems

@mojaray2k
mojaray2k / API 1
Created August 11, 2013 07:00 — forked from sosedoff/opentable_client.rb
Unofficial OpenTable API
# Unofficial OpenTable API
This project was created for one purpose — to make OpenTable data easily accesible to developers. No longer do you have to download XLS file, parse it and insert into your app's database. That shit is annoying.
It is absolutely free and open for everyone to use.
Created by @dan_sosedoff while drinking beers with @alwaysunday in Austin, TX.
## Usage
@mojaray2k
mojaray2k / domready.js
Created September 8, 2013 17:39 — forked from ded/domready.js
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()}

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {

Pure CSS Tic-tac-toe

I have seen demos of pure CSS Tic-tac-toe games, but I was unable to find a version that truly works. If I have missed it, please send me link, so I can see how another dev has created it.

A Pen by Žiga Miklič on CodePen.

License.

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@mojaray2k
mojaray2k / dabblet.css
Last active August 29, 2015 14:07 — forked from basher/dabblet.css
/**
* CSS3 tabbed interface
* - based on http://www.sitepoint.com/css3-tabs-using-target-selector/
* - 1st tab is LAST in markup:
* - so it can be styled as active on page load
* - use combination of :target and ~ to override when another tab is clicked
*/
body {
font: 62.5%/1.5 Georgia,serif;
margin: 10em 0 0;
.your-element {
// Default mobile-first styles here
@include respond(9) {
// Styles for screens from 900px on up
}
@include respond(11, ie) {
// Styles for screens from 1100px on up AND IE8
add_filter('gform_pre_render', 'swp_populate_attendee_list');
function swp_populate_attendee_list($form){
$num = swp_get_the_amount();
if ( count( $num ) < 1 ) {
add_filter('gform_get_form_filter', create_function('', "return 'You have not met the condition! Please go to <a href=\"/?page_id=1\">this form.</a>';") );
}
return $form;