Skip to content

Instantly share code, notes, and snippets.

View billyboozer's full-sized avatar

Billy Boozer billyboozer

View GitHub Profile
@billyboozer
billyboozer / test.html
Created April 18, 2019 15:20
Test Things
<h1>
test
</h1>
@billyboozer
billyboozer / Comments.md
Last active June 15, 2016 19:05
Issue with compiling react native
<?php
/*
This is a sample local-config.php file
In it, you *must* include the four main database defines
You may include other settings here that you only want enabled on your local development checkouts
*/
define('DB_NAME', 'something');
define('DB_USER', 'someone');
<?php
/*
Template Name: Company
*/
?>
<?php
/*
* get a field value from the current post
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
* always reference jQuery with $, even when in .noConflict() mode.
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.0.0/ember.js"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
jQuery(function($) {
// Asynchronously Load the map API
var script = document.createElement('script');
script.src = "http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script);
});
function initialize() {
var map;
var bounds = new google.maps.LatLngBounds();
class Api::V1::LeadsController < ApplicationController
respond_to :json
def index
respond_with Lead.all
end
def show
respond_with lead
end
@billyboozer
billyboozer / gist:7214580
Created October 29, 2013 13:24
Embed html in yaml
// Yaml object
- image: /images/landing_pages/cool-season/interface.jpg
download: http://www.backedbybayer.com/system/product_guide/asset_file/73/Product_Interface.pdf
title: Interface
body: Interface provides year-round broad-spectrum disease control and plant health promotion with StressGard<sup>&trade;</sup> Formulation Technology. Interface controls key diseases such as dollar spot, brown patch, snow mold, Microdochium patch and leaf spots.
button_text: View Guide
// In the Controller
def cool_season_turf
@industry = Industry.find_by_slug 'golf-course-management'
@billyboozer
billyboozer / Sublime Text 2 Settings
Last active December 20, 2015 10:39
Sublime Text 2 Settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "solid",
"color_scheme": "Packages/base16-textmate/base16-tomorrow.dark.tmTheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store"