Skip to content

Instantly share code, notes, and snippets.

View jvaz11's full-sized avatar

Juan Vazquez jvaz11

View GitHub Profile

This is the first file

And now the file is done.

Application('Google Chrome').windows[0].activeTab.url()
Application('Google Chrome').windows[0].activeTab.execute({javascript:'window.getSelection().toString()'})
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../../../favicon.ico">
<title>Sticky Footer Template for Bootstrap</title>
/* How to use this snippet */
// - create a plain-text snippet containing the entire moment.js library (copy/paste it from http://momentjs.com/downloads/moment.js)
// - set the abbreviation for this snippet to something like "momentjslibrary"
// - create a JavaScript snippet and paste the code below into it. set the abbreviation to whatever you'd like
// **********************************************************************
// copy/paste everything below this comment ↓
/**
* This script chooses a random variation of a phrase from a list of possible variations.
* How-to video: https://juanvme123.wistia.com/medias/fay8zbrbhs
* Note: You must have TextExpander 5 for this to work.
*/
// list of possible opening phrases. you can add, remove, and edit these if you'd like
// separate them with a comma but don't include a comma after the last one
var openers = ["Thanks for reaching out! ", "Thanks for getting in touch! ", "Thanks for writing in! "];
@jvaz11
jvaz11 / javascript_resources.md
Last active August 29, 2015 14:16 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@jvaz11
jvaz11 / 0_reuse_code.js
Last active August 29, 2015 14:16
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
@jvaz11
jvaz11 / README.md
Last active December 29, 2015 13:08 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.