Skip to content

Instantly share code, notes, and snippets.

MatthewEppelsheimer / breakpoints.css
Created Jan 8, 2012
Responsive Break Point Media Query Boilerplate
View breakpoints.css
// Mobile First
@media screen and (min-width: 321px) { // iPhone landscape
@media screen and (min-width: 481px) { // iPad portrait
rothgar / main.yml
Last active Jun 1, 2022
Generate /etc/hosts with Ansible
View main.yml
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
james2doyle / scrollTo.js
Last active Jun 8, 2022
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
View scrollTo.js
// easing functions
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
return -c/2 * (t*(t-2) - 1) + b;
marktheunissen / pedantically_commented_playbook.yml
Last active Sep 29, 2022 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
This playbook has been removed as it is now very outdated.