Skip to content

Instantly share code, notes, and snippets.


Andrew Golightly magician11

View GitHub Profile
davecap / collections.liquid.html
Last active Sep 11, 2020
"Infinite" scrolling in Shopify collections
View collections.liquid.html
{% paginate collection.products by 20 %}
<!-- the top of your collections.liquid -->
{% for product in collection.products %}
<!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->
<div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}">
{% include 'product' with product %}
<!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->
asabaylus / gist:3071099
Created Jul 8, 2012
Github Markdown Heading Anchors
View gist:3071099

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

jozsefDevs / validation_curry.js
Created Oct 22, 2013
A simple way to implement a validation by JavaScript currying
View validation_curry.js
var above = function(limit){
return function(value){
return value > limit;
var isAbove10 = above(10);
console.log(isAbove10(5)); // false
console.log(isAbove10(8)); // false
View gist:11352987
<label for="sort-by">Sort by</label>
<select id="sort-by">
<option value="manual">Featured</option>
<option value="price-ascending">Price: Low to High</option>
<option value="price-descending">Price: High to Low</option>
<option value="title-ascending">A-Z</option>
<option value="title-descending">Z-A</option>
<option value="created-ascending">Oldest to Newest</option>
<option value="created-descending">Newest to Oldest</option>
nicolasembleton /
Last active Sep 17, 2020
Restart Bluetooth Daemon on Mac OS X without restarting
sudo kextunload -b
sudo kextload -b
wosephjeber /
Last active Sep 23, 2020
Installing ngrok on Mac

Installing ngrok on OSX

brew cask install ngrok

Using ngrok

The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run ngrok http [port number].

You can quickly boot up a local webserver using ruby. cd into the project's root directory and run ruby -run -e httpd . -p [port number].

Gattermeier / config.js
Last active Oct 3, 2017
NODE ENV config
View config.js
// var config = require('./config.js').get(process.env.NODE_ENV);
var config = {
production: {
session: {
key: '',
secret: 'something.super.secret'
database: 'mongodb://<user>:<pwd>',
twitter: {
DavidWells / webpack-cssloader-keyframes-example
Created Sep 25, 2015
Example of how to use keyframes in webpack with css-loader + postcss
View webpack-cssloader-keyframes-example
:global {
.test {
position: absolute;
background: red;
display: block;
transform: rotateY(0deg);
d2s /
Last active Sep 22, 2020
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.

Carleen Michele Boyer

carleenboyer@gmail.com • (+66) 094-762-7778

##SUMMARY With four years’ experience in laboratory research, I am a passionate experimental physicist with strong analytical skills. My work includes the fields of fluid dynamics, chaos theory, and astrophysics. I am accustomed to various group dynamics, working under supervision, and managing projects independently. I aim to apply my skills, knowledge, and previous work experience to a high-energy work environment.


You can’t perform that action at this time.