Skip to content

Instantly share code, notes, and snippets.


Lance Pollard lancejpollard

View GitHub Profile
lancejpollard /
Created Mar 5, 2012
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
lancejpollard / cursor-position.js
Created Sep 22, 2012
Get Cursor Position in Terminal with Node.js
View cursor-position.js
module.exports = function(callback) {
require('child_process').exec('./', function(error, stdout, stderr) {
callback(error, JSON.parse(stdout));
lancejpollard /
Created Nov 28, 2011
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
lancejpollard /
Created Jul 26, 2020 — forked from eloypnd/
wildcard DNS record on OS X in localhost development with dnsmasq

wildcard DNS in localhost development

$ brew install dnsmasq
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
lancejpollard / binary-addition.js
Created Jul 6, 2020 — forked from nealfennimore/binary-addition.js
Binary addition in javascript
View binary-addition.js
* Add two bits together and get resulting bits
* @param {Number} a bit a
* @param {Number} b bit b
* @returns {Array<Number, Number>} Carry and sum as a result of addition
function addBits(a, b){
return [ +( a && b ), +( a !== b ) ];
View html5-dom.html
<div class='document' role='document'>
<section class='header container' role='definition'>
<div class='navigation'>
<div class='frame'>
<header class='logo'>
<nav class='menu' role='directory'>
View memcpy.asm
page ,132
title memcpy - Copy source memory bytes to destination
;memcpy.asm - contains memcpy and memmove routines
; Copyright (c) Microsoft Corporation. All rights reserved.
; memcpy() copies a source memory buffer to a destination buffer.
; Overlapping buffers are not treated specially, so propogation may occur.
lancejpollard / chacha20.js
Created May 29, 2020 — forked from rumkin/chacha20.js
View chacha20.js
/* chacha20 - 256 bits */
// Written in 2014 by Devi Mandiri. Public domain.
// Implementation derived from chacha-ref.c version 20080118
// See for details:
function U8TO32_LE(x, i) {
return x[i] | (x[i+1]<<8) | (x[i+2]<<16) | (x[i+3]<<24);

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

You can’t perform that action at this time.