Skip to content

Instantly share code, notes, and snippets.

View jescalan's full-sized avatar

Jeff Escalante jescalan

View GitHub Profile
@jescalan
jescalan / main.js
Last active December 14, 2015 07:19 — forked from anonymous/main.js
A better setTimeout
$(function(){
$('#boxes li').on('click', function(){
var self = $(this);
self.addClass('selected');
wait(self, function(){
this.removeClass('selected');
}, 1000);
});
@jescalan
jescalan / ball.html
Last active September 17, 2025 12:32
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content=" a bouncing ball with js">
<meta name="keywords" content="bouncing, 3d, ball, round, web development, kittens">
<meta name="author" content="Kitty Cat">
<title>Create A Bouncing Ball</title>
https://news.layervault.com/u/tree_flat.json
https://news.layervault.com/new.json
@jescalan
jescalan / gist:5119598
Last active December 14, 2015 17:08 — forked from samccone/gist:5119549
https://news.layervault.com/u/tree_flat.json
https://news.layervault.com/new.json
https://news.layervault.com/stories.json
@jescalan
jescalan / example.js
Created March 9, 2013 18:21
Javascript function declaration
// In this first example, I declare a function with what I call
// the 'standard' syntax, which is what I have taught. Because of
// this, I can make a call to the function before or after the declaration.
say_hello(); // logs 'hello world!'
function say_hello(){
console.log('hello world!');
}
@jescalan
jescalan / first_post.jade
Created May 15, 2013 17:47
You can perform some voodo magic within roots to transfer information from your dynamic content into your external javascript. This is a small sample of how one might do this, the specific example being infinite scroll functionality on a blog.
---
title: 'hello world'
---
:markdown
blah blah blah
@jescalan
jescalan / rbenv.sls
Last active December 18, 2015 05:29
rbenv sls
rbenv-deps:
pkg.installed:
- pkgs:
- bash
- git
- openssl
- gmake
- curl
ruby-2.0.0-p195:
@jescalan
jescalan / rbenv.sls
Last active December 10, 2021 10:40
install latest ruby via rbenv using salt stack
#
# ruby deps
#
rbenv_deps:
pkg.installed:
- names:
- git
- build-essential
- openssl
@jescalan
jescalan / auth.js
Created June 24, 2013 16:35 — forked from kylemac/auth.js
// routes/auth.js
var passport = require('passport')
, LocalStrategy = require('passport-local').Strategy;
exports.member_auth = function(req, res) {
// console.log("Request Body == ", req.body);
var strategy = new LocalStrategy({
usernameField: 'email',
@jescalan
jescalan / story.md
Created August 1, 2013 22:30
My response to @filamentgroup. #trolllife

Once upon a time, I saw this tweet by filament group.

tweet

I decided to vent some of my frustrations, and sent them this email:


Dear Filament Group,