Skip to content

Instantly share code, notes, and snippets.

View rastersysteme's full-sized avatar
🥝
carpe diem

Stephan Zavodny rastersysteme

🥝
carpe diem
View GitHub Profile
@JanBe
JanBe / github.com.js
Last active October 25, 2016 16:14
Some improvements for GitHub's pull request view (using https://github.com/defunkt/dotjs)
$(function() {
addProgressBar = function() {
checked = $('.discussion-timeline input:checkbox:checked.task-list-item-checkbox').length
total = $('.discussion-timeline .task-list-item-checkbox').length
progress = (checked / total) * 100.0
bar = '<div class="discussion-sidebar-item progress">'
bar += '<h3 class="discussion-sidebar-heading">Progress</h3>'
bar += '<span class="progress-bar">'
bar += '<span class="progress" style="width: ' + progress + '%">'
bar += '&nbsp;'
@mhulse
mhulse / no-x.js
Last active July 22, 2023 09:08
[no-js] [no-touch] JavaScript utilities to put in <head> of HTML templates that will add `js` or `touch` classes for use in CSS and/or JS.
<!doctype html>
<html class="no-touch no-js">
<head>
<script> /* PUT `no-x.js` here, as early as possible, before any other CSS or JS calls ... */ </script>
</head>
...