Skip to content

Instantly share code, notes, and snippets.

View xav's full-sized avatar
🙊

Xavier Basty xav

🙊
  • Toulouse, France
  • 14:22 (UTC +02:00)
View GitHub Profile
@xav
xav / branches.sh
Created June 14, 2023 08:13
List branch activity for git repository
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^main$ |grep -v ^HEAD$`; do echo "$i;`git log -1 --pretty=format:\"%an (%ae);%at\" origin/$i`"; done |sort > branches.csv
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@xav
xav / keybase.md
Last active November 22, 2021 18:02

Keybase proof

I hereby claim:

  • I am xav on github.
  • I am xbasty (https://keybase.io/xbasty) on keybase.
  • I have a public key ASAR7DP7aoeBpgIcLGzYBzFRDkXg7oGZ9ivPy8T1nf268Qo

To claim this, I am signing this object:

class A
class A2 extends A
class B
trait M[X]
//
// Upper Type Bound
//
def upperTypeBound[AA <: A](x: AA): A = x
@xav
xav / q.js
Created October 4, 2011 22:49
vecJS - calculation of a spherical quadrangle interpolation control point
_q1
.set(q1.q)
.exp()
.assignAdd(
_q1.clone().mulQ(q2.q).log().q,
_q1.clone().mulQ(q0.q).log().q
)
.mulScalar(-0.25)
.exp();
a.set(q1.q).mulQ(_q1.q);