Skip to content

Instantly share code, notes, and snippets.

View jeremyliseismic's full-sized avatar

Jeremy Li jeremyliseismic

  • seismic
View GitHub Profile
@l15n
l15n / git-branches-by-commit-date.sh
Created July 13, 2012 08:47 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
@malterb
malterb / IteratorUtils.scala
Last active June 14, 2021 14:18
groupBy on scala iterator
package utils
import scala.collection.mutable
import scala.language.implicitConversions
object IteratorUtils {
/**
* Implicit class that adds "groupBy" functionality to an iterator. The result is a mutable.HashMap and will be
* stored in memory in its entirety
// ライブラリとしてコンパイルする想定のコード。
// <Project Sdk="Microsoft.NET.Sdk">
// <PropertyGroup>
// <TargetFramework>netstandard2.0</TargetFramework>
// <LangVersion>preview</LangVersion>
// </PropertyGroup>
// </Project>
using System;
using System.Runtime.CompilerServices;