Skip to content

Instantly share code, notes, and snippets.

@silverbucket
silverbucket / git pretty stat
Created June 8, 2022 15:31 — forked from sephiroth74/git pretty stat
Show lines added/deleted and total commits per author in a period of time on all branches
git log --all --numstat --pretty="%H" --author="author" --since=1.year | awk 'NF==3 {plus+=$1; minus+=$2} NF==1 {total++} END {printf("lines added: +%d\nlines deleted: -%d\ntotal commits: %d\n", plus, minus, total)}'
Verifying my Blockstack ID is secured with the address 1AFr193JBCuPWS3qQKS2BKLRxwJcjynsrV https://explorer.blockstack.org/address/1AFr193JBCuPWS3qQKS2BKLRxwJcjynsrV

Keybase proof

I hereby claim:

  • I am silverbucket on github.
  • I am silverbucket (https://keybase.io/silverbucket) on keybase.
  • I have a public key ASCYvqi39nsoIWENiJuE6crE-m_AaGeI1OpTbo-yQ62zWQo

To claim this, I am signing this object:

@silverbucket
silverbucket / app.html
Last active June 29, 2016 12:56 — forked from jdanyow/app.html
Aurelia - rewriting arrays UI update failure
<template>
<h1>Files List</h1>
<button click.trigger="addFile()">Add File</button>
<ul>
<li repeat.for="file of files._store">
<p>${file.uid} - ${file.name}</p>
</li>
</ul>
</template>
var feed = 'http://somefeed.com/rss'
var req = request(feed)
req.on('response', function (response) {
if (sometest(feed)) {
req.pipe(iconv).pipe(parser)
}
else {
req.pipe(parser)
}
})
var schema = {
"credentials" : {
"name": "credentials",
"type": "object",
"required": true,
"patternProperties" : {
".+": {
"type": "object",
"required": true,
"properties": {
@silverbucket
silverbucket / sockethub-twitter-example-basic.js
Last active May 13, 2017 15:57
Example sockethub-client use for twitter
<html
<head><title>Twitter Example</title></head>
<body>
<script type="text/javascript" src="http://localhost:10550/sockethub/socket.io.js"></script>
<script type="text/javascript" src="http://localhost:10550/activity-streams.js"></script>
<script type="text/javascript" src="http://localhost:10550/sockethub-client.js"></script>
<script type="text/javascript">
window.onload = function () {
var sc = new SockethubClient(io("http://localhost:10550". { path: "/sockethub" });