Skip to content

Instantly share code, notes, and snippets.

View joshuapekera's full-sized avatar

Joshua Pekera joshuapekera

View GitHub Profile
@joshuapekera
joshuapekera / index.html
Last active August 29, 2015 14:26 — forked from philipjabenton/index.html
A CodePen by Philip Benton. Navigation Bar Show on Scroll Up - Navigation bar fixed at the top of the browser which hides upon scrolling down the page. Upon scrolling up the bar shows itself. No need to scroll to the top of the browser window.
<!DOCTYPE html>
<html>
<head></head>
<body>
<nav class="navigation-bar is-visible" data-nav-status="toggle">
<ul>
<li>Home</li>
<li>About</li>
<li>Services</li>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>
CSS Transitions And Class Timing
</title>
<style type="text/css">
// Use Animate.css
// http://daneden.github.io/animate.css/
var animateName = 'animated insertAnimation'
$(document).ready(function(){
$('#button').click(function(){
$('.main').addClass(animateName).one(animateEnd, function(){
$(this).removeClass(animateName).css({});
});
// jQuery.naturalWidth / jQuery.naturalHeight plugin for (already-loaded) images
// Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy!
(function($) {
function img(url) {
var i = new Image;
i.src = url;
return i;
}
/**
* Replace jQuery's $.fn.ready() function with a mod exec
*
* Sites that make heavy use of the $(document).ready function
* are generally incompatable with asynchrounous content. The
* the $.fn.ready function only runs once. This script replaces
* the ready function with a module execution controller that
* let's us register functions and execute all of the functions
* as we need them. This is useful after HTML gets injected on the
* page and we want to rebind functionally to the new content.
<!-- ALL CREDIT FOR THE SCROLLING TEXT GOES TO
Craig Buckler
http://www.sitepoint.com/css3-starwars-scrolling-text/
Blame me for the music via embedded video bit
-->
<div style="border:1px solid darkred;overflow:hidden; position:absolute; left:0; top:0; width:50px; height:25px;">
<div style="margin-top:-290px;">
<object width="420" height="315">
<?php
class Example_API {
private $api_url;
private $api_key;
private $password;
/**
* Class Constructor
resource "digitalocean_droplet" "haproxy-www" {
image = "ubuntu-14-04-x64"
name = "haproxy-www"
region = "nyc2"
size = "512mb"
private_networking = true
ssh_keys = [
"${var.ssh_fingerprint}"
]
connection {
@joshuapekera
joshuapekera / 0_reuse_code.js
Created June 29, 2014 02:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
# this script let you automatically change permissions for a PyroCMS project
echo Start Setting PyroCMS Permissions
chmod -Rf 777 assets/
echo changing permissions for assets/
chmod -Rf 777 uploads/
echo changing permissions for uploads/