Skip to content

Instantly share code, notes, and snippets.

stuff and thangs

Robbie McAlister robmcalister

stuff and thangs
  • Durham, NC
Block or report user

Report or block robmcalister

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
robmcalister / fiddle.css
Created Mar 16, 2018 — forked from anonymous/fiddle.css
Formatted currency input component using Vue.js (source:
View fiddle.css
body {
margin: 20px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
input {
border: 1px solid #888;
font-size: 1.2rem;
padding: 0.5rem;
robmcalister / core.js
Created Oct 18, 2017 — forked from RobK/core.js
NodeJS example code to generate a RFC 2104 compliant HMAC
View core.js
var crypto = require("crypto");
* Get the signature/digest of a supplied input string
* @param data [Required] The String to encode
* @param awsSecretKey [Required] Secret key shared with Amazon
* @param algorithm [Optional] Encryption algorithm, defaults to sha256
* @param encoding [Optional] The output encoding. Default to base64
* @returns Str with encoded digest of the input string
function generateHmac (data, awsSecretKey, algorithm, encoding) {
robmcalister / gen_hmac.js
Created Oct 18, 2017 — forked from turret-io/gen_hmac.js
Generate HMAC in NodeJS
View gen_hmac.js
var crypto = require('crypto');
var SHARED_SECRET = "sup3rs3cr3t!!";
function signString(string_to_sign, shared_secret) {
var hmac = crypto.createHmac('sha512', shared_secret);
robmcalister /
Created Apr 12, 2017 — forked from nepsilon/
3 Vim tips with external commands — First published in issue #95

3 Vim tips with external commands

Vim has this ! special character that will run any shell command without having to close it. Here are 3 ways I often use it:

1. Format a JSON blob:

:%!python -m json.tool

2. Count number of characters in a file:

robmcalister /
Created Mar 21, 2017 — forked from nepsilon/
How to disable HTML links with CSS? — First published in issue #92
robmcalister / static_server.js
Last active Jun 27, 2016 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
View static_server.js
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8080;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
robmcalister /
Last active Aug 29, 2015 — forked from brandonb927/
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
robmcalister / momentum.css
Created Sep 10, 2014
Momentum scrolling on webkit
View momentum.css
overflow: hidden;
overflow-y: scroll; /* has to be scroll, not auto */
-webkit-overflow-scrolling: touch;
View youkutudouvideo.php
Plugin Name: Youku and Tudou Video Embed
Description: A simple shortcode to embed Youku and Tudou videos in your website
Version: 1.0
Author: Ben Tedder
Author URI:
License: GPL2
View apex_insert.html
<!-- Page: composition -->
<!-- This page acts as the template. Create it first, then the page below. -->
<apex:outputText value="(template) This is before the header"/><br/>
<apex:insert name="header"/><br/>
<apex:outputText value="(template) This is between the header and body"/><br/>
<apex:insert name="body"/> </apex:page>
<!-- Page: page -->
You can’t perform that action at this time.