Skip to content

Instantly share code, notes, and snippets.

View riwsky's full-sized avatar
😁

Will Cybriwsky riwsky

😁
View GitHub Profile
@riwsky
riwsky / jts
Last active August 6, 2024 16:35
graphite submit script for jujutsu repositories
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
jj fix
# Get the list of mutable branches that are reachable from the current branch
# (i.e. that are between us and main).
branches=$(jj branch list -r 'reachable(@,mutable())' --template 'name ++ "\n"')
@riwsky
riwsky / time-entry-directive.js
Created October 5, 2013 20:55
a simple angularjs directive module for Keith Wood's jquery time entry (http://keith-wood.name/timeEntry.html)
angular.module('jqTimeEntry', [])
.directive('jqTimeEntry', function () {
return {
scope: {timeModel: "="},
link: function (scope, element, attrs) {
$(element).timeEntry({show24Hours: true, ampmNames: ['a', 'p'],
ampmPrefix: ' ', useMouseWheel: true,
showSeconds: false, timeSteps: [1, 1, 1],
spinnerImage: ''
}).change(function () {