Skip to content

Instantly share code, notes, and snippets.

View RedTn's full-sized avatar
💭
Will code for food

Redmond Tran RedTn

💭
Will code for food
View GitHub Profile
@RedTn
RedTn / post-merge.ps1
Last active August 14, 2018 20:39
I wanted to use the script from: https://gist.github.com/sindresorhus/7996717, but we use a windows environment at work so I wrote my own script on powershell
$changedFiles = git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD;
$hasPackageJson = $false;
Foreach($file in $changedFiles){
if($file -like '*package.json*') {
$hasPackageJson = $true;
break;
}
}
if($hasPackageJson)
{
package com.leetcode.ackermann;
import java.util.Scanner;
public class Ackermann {
private int _test;
public static long computeAckermann(long m, long n) {
}