Skip to content

Instantly share code, notes, and snippets.

View bradonomics's full-sized avatar

Brad West bradonomics

View GitHub Profile
@bradonomics
bradonomics / booking-widget.js
Created November 15, 2017 12:38
Increase and decrease input field value
//* Increase the occupancy in booking widget
$(".increment").click(function() {
var $increment = $(this);
//* Get the current input value
var originalValue = $increment.parent().siblings("input").val();
//* Increase the value by 1
var newValue = parseFloat(originalValue) + 1;
//* Apply the value to the input field
$increment.parent().siblings("input").val(newValue);
});
@bradonomics
bradonomics / overlay.css
Last active March 15, 2020 16:42
Background dark overlay
box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.4) inset;
border-collapse: separate;
/* Notes on IE: https://caniuse.com/#feat=mdn-css_properties_box-shadow_inset */
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@bradonomics
bradonomics / fonts.scss
Last active January 8, 2021 03:58
Whitney & Sentinel Fonts CSS File (base64)
@font-face {
font-family: "Whitney SSm SC A";
src: url(data:application/x-font-woff;base64,d09GRk9UVE8AACSFAA0AAAAAN7gAAQAAAAAiXAAAAikAAAaRAAAAAAAAAABDRkYgAAAIzAAAFOgAABjhSw4xdkdERUYAAB20AAAAHQAAACAApQAER1BPUwAAHdQAAALQAAALHqpjoC9HU1VCAAAgpAAAAFoAAACA6dotXU9TLzIAAAGMAAAATwAAAGBZHFc/Y21hcAAABmgAAAJOAAADoIQ7xnlnYXNwAAAhAAAAAAgAAAAIAAAAC2hlYWQAAAEwAAAANAAAADYC7N5yaGhlYQAAAWQAAAAgAAAAJAd+A49obXR4AAAhCAAAAVMAAAHg/fogQW1heHAAAAGEAAAABgAAAAYAeFAAbmFtZQAAAdwAAASKAAALyqV9lZxwb3N0AAAIuAAAABMAAAAg/7gAMnjaY2BkYGBgZHC8dFVtYTy/zVcGbuYXQBGGC5y+JTD6/9X/KszPmB2AXA4GJpAoAGwsDKh42mNgZGBgPvBfgIGBRf//1f/XmZ8xAEVQQAUAoQcHEwAAUAAAeAAAeNpjYGKSYXRlYGVgYdrD1MXAwNADoRnvMhgx/GJAAgsZmP47MDBEw/geas75QEpZUYlZ4b8FwwnmAwwfgPz5IDkmIaarDApAyAQAvV8O/gB42rVUTW/bRhAdWXJsJ7ET+5jTNA2MpJBkyVBiK6eiBgznGhsJAvRQilqJdEQusVxaYZFD7+2xhx7yO3ruD+hP6I/p2+G6puJEcYFWhLhvZ+fjvZkFiehR43dqUPX7Fv8KN+hr7Cq8QmsUetykr+jc41bNZ5U26WePb+HkN4/XaEIfPF6nzcaKxxs1fHtlu3HP4zu002SP79bwZs1ni75p7nt8v8Zhu4Z3BDep0drA7qfm9x436Lj5l8crtNV66HGTvmv1PG7VfFbpQct4fIvWW794vEZ/tn71e
<div class="wrap">
<div id="container" class="wrap-inner" data-page="{{ currentPage }}" data-totalPages="{{ paginator.total_pages }}">
{% assign posts = site.posts | where: "language", page.language %}
{% if paginator.page %}
{% assign offset = paginator.page | minus:1 | times:paginator.per_page %}
{% assign currentPage = paginator.page %}
{% else %}
{% assign offset = 0 %}
@bradonomics
bradonomics / install.sh
Last active May 3, 2016 08:26
Installation script for Jekyll Boilerplate (or how to start a Jekyll theme). See github.com/bradonomics/jekyll-boilerplate#readme for instructions.
#!/bin/bash
# Download boilerplate files
wget https://github.com/bradonomics/jekyll-boilerplate/archive/master.tar.gz
# Unzip
tar zxf master.tar.gz
cd jekyll-boilerplate-master
cp -rpf * ../
cp -rpf .[^.]* ../ # moves .gitignore
@bradonomics
bradonomics / install.sh
Created April 13, 2016 09:49
Installation script for Genesis Boilerplate (or how to start a Genesis child theme). See bradonomics.com/genesis-boilerplate/ for instructions.
#!/bin/bash
# Download boilerplate files
wget https://github.com/bradonomics/genesis-boilerplate/archive/master.tar.gz
# Unzip
tar zxf master.tar.gz
cd genesis-boilerplate-master
cp -rpf * ../
cp -rpf .[^.]* ../ # moves .gitignore
@bradonomics
bradonomics / post-categories.html
Created December 14, 2015 02:46
Jekyll Categories on GitHub Pages (single category) (_includes/post-categories.html)
<span class="entry-categories"><a href="{{ site.url }}/{{ page.category-url }}/" rel="category">{{ page.category }}</a></span>
@bradonomics
bradonomics / post-categories.html
Last active December 14, 2015 02:45
Jekyll Categories on GitHub Pages (multiple categories) (_includes/post-categories.html)
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<span class="entry-categories"><a href="{{ site.url }}/{{ page.category-url }}/" rel="category">{{ page.category }}</a></span>{% unless forloop.last %},{% endunless %}
{% endfor %}
@bradonomics
bradonomics / language-learning
Last active December 14, 2015 02:18
Jekyll Categories on GitHub Pages (_pages/language-learning.md)
---
layout: category
title: Language Learning
description: Some thoughts on adult language learning that fall outside the standard techniques of translation and grammar study.
category: language learning
permalink: /language-learning/
---
If you were hoping for some original research, sadly I have none. What follows has already been written about elsewhere and by people far smarter than me. What I hope to bring to the conversation is a simplified version of their work and my story in discovering it. But more importantly, I hope to introduce you to some thoughts on adult language learning that fall outside the standard techniques of translation and grammar study.