This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main | |
{ | |
public static List<Integer> primes = new ArrayList<Integer>(); | |
public static void main(String[] args) | |
{ | |
findPrimes(100); | |
for(int prime : primes) | |
System.out.println(prime); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class Test | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine(IsPalindrome("amanaplanacanalpanama")); | |
} | |
public static bool IsPalindrome(string word) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' David DeMar | |
' [email protected] | |
Sub FormatData() | |
' | |
' FormatData Macro | |
' Removes merged cells and wrapped text from the Payroll Summary report and checks that all employees are included in the allocations sheet | |
' | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the current branch name | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
# Get the first commit on the current branch that is not on the main branch | |
FIRST_COMMIT=$(git rev-list main..${BRANCH} --reverse | head -1) | |
# Change the committer date to the author date for all commits from the first commit to the current branch | |
git filter-branch -f --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' \ |