Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
This allows your gravity forms to load via ajax to ensure they work correctly with page transitions that have no window/document.onload |
// based on https://github.com/processing/processing/blob/a6e0e227a948e7e2dc042c04504d6f5b8cf0c1a6/core/src/processing/core/PApplet.java#L5093 | |
var scale = function(opts){ | |
var istart = opts.domain[0], | |
istop = opts.domain[1], | |
ostart = opts.range[0], | |
ostop = opts.range[1]; | |
return function scale(value) { | |
return ostart + (ostop - ostart) * ((value - istart) / (istop - istart)); |
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* | |
* customized for momentum (zoom and phi/delta) by paulkaplan | |
*/ | |
THREE.OrbitControls = function ( object, domElement ) { |
<?php | |
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<div class="form-wrapper"> | |
<div class="form-wrapper-inner"> | |
<div id="hubspot_form_widget_wrapper"> | |
{% form "main_form" editing={group="page_actions", order=30} %} | |
</div> | |
<div id="hubspot_dummy_form" style="display: none"> | |
<form class="hs-form stacked"> | |
<h3 class="form-title">Fill Out Our Form</h3> | |
<div class="field"> | |
<label>First Name</label> |
import sys | |
import csv | |
import httplib, urllib, base64 | |
def main(): | |
# set the name of your repository, username and password | |
username = "test" | |
password = "test" | |
repo = "test" | |
I've tried now for several hours understanding how to use Git with webfaction. | |
And even with the documentation I cannot get it to work. | |
I have a Django app at: webapps/django_app/project_name/ | |
I have a Git repo at: webapps/git_app/repos/my_repo.git | |
I assume the following workflow: | |
Make som local changes |
<?php | |
/** | |
* Given a string containing any combination of YouTube and Vimeo video URLs in | |
* a variety of formats (iframe, shortened, etc), each separated by a line break, | |
* parse the video string and determine it's valid embeddable URL for usage in | |
* popular JavaScript lightbox plugins. | |
* | |
* In addition, this handler grabs both the maximize size and thumbnail versions | |
* of video images for your general consumption. In the case of Vimeo, you must | |
* have the ability to make remote calls using file_get_contents(), which may be |