Skip to content

Instantly share code, notes, and snippets.

View jescalan's full-sized avatar

Jeff Escalante jescalan

View GitHub Profile
@jescalan
jescalan / browser-support-table.md
Last active March 13, 2020 22:32 — forked from danbovey/browser-support-table.md
Browser support table in markdown

Table

Chrome Firefox Opera Safari IE
Latest Latest Latest Latest 11+

Code

![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_24x24.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_24x24.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_24x24.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_24x24.png) | ![
new SpikeDatoCMS({
addDataTo: locals,
token: 'xxx',
templates: [
{
collection: (dato) => dato.blogPosts,
path: 'templates/post.html',
output: (post) => { return `posts/${post.slug}.html` }
}
]
@jescalan
jescalan / index.js
Last active December 11, 2016 21:02 — forked from tkraak/index.js
Gist from mistakes.io
/**
* @param {number} n - integer (n >= 0)
* @param {number} d - digit (0 <= d <= 9)
* square all numbers k between 0 and n (0 <= k <= n)
* count the number of digits d used in the k*k's
* example
*
* n = 10
* d = 1
@jescalan
jescalan / app.coffee
Last active August 29, 2015 14:18 — forked from andyshora/app.coffee
axis = require 'axis'
js_pipeline = require 'js-pipeline'
css_pipeline = require 'css-pipeline'
roots_config = require 'roots-config'
W = require 'when'
readdirp = require 'readdirp'
siteFiles = []
# generate files for sitemap
@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 / 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
https://news.layervault.com/u/tree_flat.json
https://news.layervault.com/new.json
@jescalan
jescalan / ball.html
Last active December 14, 2015 13:49
<!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>
@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 / loop.js
Created November 16, 2011 19:16 — forked from wycats/loop.js
Handlebars No Name Loop
// The JSON (get back from api as javascript objects contained in an array)
// when logged to console, [▶Object,▶Object] etc.
// can be manipulated before being passed to handlebars
[
{
id: 1,
link: "http://abcnews.go.com/Business/video/job-search-social-media-ditch-resume-hunt-nontraditional-ways-internet-professional-contacts-business-13581468",
title: "ABC News: Job Search Through Social Media",
updated_at: "2011-10-19T16:22:30Z"