This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//you can paste your code in here. | |
//then I can copy and paste it . | |
//better than a screen shot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); | |
* { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="http://creativesocialite.com/wp-content/uploads/2015/01/updated-flyer.jpg" style="width:100%:"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.videoWrapper { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 25px; | |
height: 0; | |
} | |
.videoWrapper iframe { | |
position: absolute; | |
top: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Template = { | |
generic: function(selector, context ){ | |
var source = $("#"+selector).html(); | |
var template = Handlebars.compile(source); | |
var html = template(context) | |
return html | |
} | |
} |