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
__author__ = '@goldhand' | |
import itertools | |
import os | |
import sys | |
_root = os.path.dirname(os.path.abspath(__file__)) | |
_lib = os.path.join(_root, 'lib') |
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
__author__ = '@goldhand' | |
import itertools | |
import os | |
import sys | |
_root = os.path.dirname(os.path.abspath(__file__)) | |
_lib = os.path.join(_root, 'lib') |
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
# -*- coding: utf-8 -*- | |
""" | |
Django settings for onegreek project. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/dev/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/dev/ref/settings/ | |
""" |
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
$ sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 curl libxslt-dev libpq-dev git python python-virtualenv | |
$ mkdir $VENV/$PROJECTNAME | |
$ virtualenv $VENV/$PROJECTNAME | |
$ source $VENV/$PROJECTNAME/bin/activate | |
$ cd $PROJECTS | |
$ mkdir $PROJECTNAME | |
$ cd $PROJECTNAME |
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
class LocalCzar(Local): | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': 'dtf', | |
'USER': 'charina', | |
} | |
} |
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
// Create cross browser requestAnimationFrame method: | |
window.requestAnimationFrame = window.requestAnimationFrame | |
|| window.mozRequestAnimationFrame | |
|| window.webkitRequestAnimationFrame | |
|| window.msRequestAnimationFrame | |
|| function(f){setTimeout(f, 1000/60)} | |
var parallaxElem = document.getElementById('parallax-content'); | |
var scrollRate = .5; // move parallaxElem at 50% of scroll rate |
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
$rootScope.scrollLevel = { | |
'one': false, | |
'two': false, | |
}; | |
$rootScope.scrollY = window.pageYOffset; | |
$rootScope.scrollingDown = false; | |
$rootScope.scrollingUp = false | |
window.onscroll = function () { | |
if($rootScope.scrollY>window.pageYOffset){ | |
$rootScope.scrollingDown = false; |
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
(function() { | |
// author: Will Farley | |
// github: @goldhand | |
// Create cross browser requestAnimationFrame method: | |
window.requestAnimationFrame = window.requestAnimationFrame | |
|| window.mozRequestAnimationFrame | |
|| window.webkitRequestAnimationFrame | |
|| window.msRequestAnimationFrame |
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
<CORSConfiguration> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>access-control-allow-origin</AllowedHeader> | |
<ExposeHeader>access-control-allow-origin</ExposeHeader> | |
</CORSRule> | |
</CORSConfiguration> |
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
<script> | |
(function(){ | |
function getQueryString() { | |
var queryString= []; | |
var hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++) | |
{ | |
hash = hashes[i].split('='); | |
queryString.push(hash[0]); |