This file contains 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 type="text/javascript"> // remove the first two backslashes if pasting this into html | |
$(document).ready(function() { // document ready function | |
function loadScreenSafty() { | |
// Removes the loading class incase the library fails | |
var MILLISECONDS_FOR_LOAD_SCREEN_TO_FAIL = 5000; // change this to change delay time | |
function disableLoadScreens() { |
This file contains 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
import csv | |
import json | |
import sys | |
def main(argv): | |
''' | |
usage: | |
$ python update_json.py <glueboss-data.csv> <glueboss-data.json> | |
''' |
This file contains 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 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 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 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 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 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]); |
This file contains 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
<div class="iframe-container"> | |
<iframe src="//glueboss.herokuapp.com/#/" width="1200" height="600" frameborder="0"></iframe> | |
</div> | |
<style> | |
.iframe-container { | |
position: relative; | |
padding-bottom: 75%; | |
height: 0; | |
overflow: hidden; | |
} |
This file contains 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
@-webkit-keyframes spaceboots { | |
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); } | |
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); } | |
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); } | |
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); } | |
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); } | |
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); } | |
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); } | |
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); } | |
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); } |
OlderNewer