Skip to content

Instantly share code, notes, and snippets.

@budparr
budparr / jekyll-collections-prev-next.html
Last active September 29, 2021 10:55
Previous Next Links for Jekyll Collections
{% capture the_collection %}{{page.collection}}{% endcapture %}
{% if page.collection %}
{% assign document = site[the_collection] %}
{% endif %}
<h1>TITLE: {{ page.title }}</h1>
{% for links in document %}
{% if links.title == page.title %}
{% unless forloop.first %}
{% assign prevurl = prev.url %}
{% endunless %}
@whizark
whizark / class-naming-convention.md
Last active December 2, 2024 03:03
HTML/CSS Class Naming Convention #html #css #sass
@turbodrive
turbodrive / cubicBezierExporter.jsx
Last active November 23, 2019 03:34
Cubic bezier ease exporter from After Effects
var comp = app.project.activeItem;
var layer = comp.selectedLayers[0];
var numEffects = layer.Effects.numProperties;
var slider;
for(var i = 1; i<=numEffects; i++){
var effectLayer = layer.Effects.property(i);
var matchName = effectLayer.matchName;
if(matchName == "ADBE Slider Control"){
@laracasts
laracasts / Gulpfile.js
Created August 20, 2014 20:47
PHPSpec auto-testing Gulpfile
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('spec/**/*.php')
.pipe(run('clear'))
.pipe(phpspec('', { notify: true }))
.on('error', notify.onError({
@cvrebert
cvrebert / survey.md
Last active November 16, 2024 04:25
Click and focus behavior across browsers & OSes

Test apparatus: http://jsfiddle.net/hRub4/

(Windows = Windows 8.1 desktop)

  • Windows Chrome 39
    • Button focuses on click and via keyboard tabbing
    • Anchor focuses on click and via keyboard tabbing
  • Windows Firefox 30.0
    • Button focuses on click and via keyboard tabbing
    • Anchor focuses on click and via keyboard tabbing
  • Windows Internet Explorer 11
@staltz
staltz / introrx.md
Last active May 12, 2025 23:22
The introduction to Reactive Programming you've been missing
@pascalduez
pascalduez / SassMeister-input.scss
Created April 27, 2014 11:15
Sass, testing for empty values.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
// testing for empty values
// In Sass "", 0, () evaluate to true...
@function empty($value) {
@if not $value
@webinista
webinista / array.chunk.js
Last active March 29, 2023 23:02
Array.prototype.chunk: Splits an array into an array of smaller arrays containing `groupsize` members
/*
Split an array into chunks and return an array
of these chunks.
With kudos to github.com/JudeQuintana
This is an update example for code I originally wrote 5+ years ago before
JavaScript took over the world.
Extending native objects like this is now considered a bad practice, so use
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active April 3, 2025 00:26
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@avendael
avendael / styles.less
Created March 2, 2014 18:24
Hide Atom's tab bar
.tab-bar {
height: 0px;
visibility: hidden;
}