Skip to content

Instantly share code, notes, and snippets.

View SpencerCooley's full-sized avatar

Spencer Cooley SpencerCooley

View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cool Gallery</title>
<!--I am including CDN urls for convenience sake-->
<!--jquery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-beta1/jquery.min.js"></script>
<!--underscore is a backbone requirment -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
if 'min_price' in data and data['min_price'] and price_filtered:
min_price = data['min_price']
if data['max_price']:
max_price = data['max_price']
if beds == 1:
sqs = sqs.filter(SQ(min_price_1bed__gte=min_price) &
SQ(min_price_1bed__lte=max_price))
elif beds == 2:
sqs = sqs.filter(SQ(min_price_2bed__gte=min_price) &
var JST = require('../JST.js');
var QuillView = Backbone.View.extend({
//el should be passed in
template: JST.quillEditor,
initialize: function(options){
this.el = options.el
this.render()
},
var JST = require('../JST.js');
var QuillView = Backbone.View.extend({
//el should be passed in
template: JST.quillEditor,
initialize: function(options){
this.el = options.el
this.render()
},
@task
def staging():
env.hosts = ['cooleydigital'] # must have .ssh/config setup
env.code_dir = '/webapps/cs_staging/creative_socialite'
env.gunicorn_name = 'cs_staging'
env.virtualenv = '/webapps/cs_staging/.environments/cs_staging/bin/activate'
#change this as you make your workflow more advanced.
env.branch_name = 'development'
//you can paste your code in here.
//then I can copy and paste it .
//better than a screen shot
<style>
@font-face {
font-family: 'WebSymbolsRegular';
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot');
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.woff') format('woff'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.ttf') format('truetype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont#WebSymbolsRegular') format('svg');
}
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700);
* {
<img src="http://creativesocialite.com/wp-content/uploads/2015/01/updated-flyer.jpg" style="width:100%:">
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
var Template = {
generic: function(selector, context ){
var source = $("#"+selector).html();
var template = Handlebars.compile(source);
var html = template(context)
return html
}
}