Skip to content

Instantly share code, notes, and snippets.

@chrisjacob
chrisjacob / Gemfile
Last active February 6, 2020 08:26
Simple guide to integrating Pages v1.0.0 with Rails v4.1.1
gem 'rails', '4.1.1'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
gem 'jquery-turbolinks'
# Gems for twitter LESS -> CSS and JS support
gem 'execjs'
@jackgrant87
jackgrant87 / gist:9483103
Created March 11, 2014 10:26
AngularJS directive to fire a CSS animation once on click
// General purpose 'animate' directive.
//
// Takes these arguments:
// animate-once-target="{css selector}" animate-once-animation="{name of css animation}" animate-once-on="{event type}"
//
// Requires CSS set up as here: http://codepen.io/jackshepherd/pen/vkFad
App.directive('animateOnce', function() {
return {
restrict: 'A',
link: function(scope, element, attr) {
@oodavid
oodavid / README.md
Last active November 5, 2025 05:24 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/