Skip to content

Instantly share code, notes, and snippets.

View richardhealy's full-sized avatar
🎯
Focusing

Richard Fernandez richardhealy

🎯
Focusing
View GitHub Profile
@richardhealy
richardhealy / editor-setup.yml
Last active July 19, 2022 15:16
CodeEditor Setup
- hosts: localhost
become: true
tasks:
- name: Install zsh
apt: name=zsh
- name: Change shell
shell: chsh -s `which zsh`
- name: Install git
apt:
name: git
@richardhealy
richardhealy / setup.sh
Last active July 19, 2022 15:22
Ubuntu Ansible Setup from Scratch
apt update
apt install curl
apt install -y python3
apt install -y python3-pip
apt install -y ansible
cd ~
{
"tableDef":{
"rowActions":[
"EDIT",
"DELETE"
],
"unsortable":null,
"orderMutation":null,
"massActions":[
{
{
elements: [
{
title: 'Elasticsearch',
type: 'feature_section',
elements: [
{
type: 'header',
title: 'Elasticsearch',
card: 'ElasticsearchCard',
@richardhealy
richardhealy / index.html
Created May 8, 2018 13:38
Get lines numbers of text spanning across a set of paragraphs using JavaScript / JQuery Get lines numbers of text spanning across a set of paragraphs using JavaScript / JQuery // source https://jsbin.com/wadinuw
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Get lines numbers of text spanning across a set of paragraphs using JavaScript / JQuery">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Get lines numbers of text spanning across a set of paragraphs using JavaScript / JQuery</title>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
</head>
<body>
@richardhealy
richardhealy / phaser.js
Created December 2, 2016 16:07 — forked from crisu83/phaser.js
Wrapper module for running Phaser.js on Node.js.
// this is an ingenius hack that allows us to run Phaser without a browser
// ... and yes, it took some time to figure out how to do this
var Canvas = require('canvas')
, jsdom = require('jsdom')
, document = jsdom.jsdom(null)
, window = document.parentWindow
, Phaser;
// expose a few things to all the modules
@richardhealy
richardhealy / gist:754c8320eaa3b75a5247
Created July 30, 2015 13:08
LESS Variables for BaseKit stylesheet.less
// Don't want to use metadata.json file to define
// variables? Then just add these variables to
// the top of your stylesheet.less and you're
// good to go!!!
// Colors
@color-swatch1:#ffffff; // Background
@color-swatch2:#3295e1; // Contrast color
@color-swatch3:#444444; // Button color
@color-swatch4:#333333; // Title colour
@color-swatch5:#333333; // Paragraph colour
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
// If first entry with this name
if (typeof query_string[pair[0]] === "undefined") {
@richardhealy
richardhealy / HSBC.js
Last active January 31, 2017 10:50 — forked from benjie/HSBC.js
/******************************
HSBC Personal Statement to CSV
v0.5
Copyright: Benjie Gillam (2012)
License: WTFPL v2.0 ( http://en.wikipedia.org/wiki/WTFPL )
Instructions:
Add the following bookmarklet to your browser: