Skip to content

Instantly share code, notes, and snippets.

View lilmuckers's full-sized avatar

Patrick McKinley lilmuckers

View GitHub Profile
@lilmuckers
lilmuckers / commit.js
Last active February 10, 2023 08:07
A node.js script that utilises the githubber node.js GitHub API integration module to commit changes to a repository
//set up the object with the api details
function GitHubCommit(api, owner, repo, ref)
{
this.api = api;
this.repo = {
owner: owner,
repo: repo,
ref: ref
}
}
@lilmuckers
lilmuckers / page_weights.html
Created April 7, 2013 01:18
Liquid page weighting
<ul>
{% for weight in (0..100) %}
{% for node in site.pages %}
{% if node.weight == weight or node.weight == null and weight == 0 %}
<li>
<a href="{{node.url}}" title="{{node.title}}">{{node.title}}</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}