use git diff to generate file list
git diff --name-only master
add ext filter
use git diff to generate file list
git diff --name-only master
add ext filter
| package com.example | |
| import android.app.Instrumentation | |
| import android.os.Bundle | |
| import android.util.Log | |
| import androidx.test.internal.runner.listener.InstrumentationResultPrinter | |
| import androidx.test.platform.app.InstrumentationRegistry | |
| import org.junit.runner.Description | |
| import org.junit.runner.notification.RunListener |
| /** | |
| * Simple TestNG test which demonstrates being instantiated via a DataProvider in order to supply multiple browser combinations. | |
| * | |
| * @authors Neil Manvar, Dylan Lacey | |
| */ | |
| public class TestBase { | |
| // SNIP | |
| /** |
| trigger: | |
| - none | |
| pool: | |
| vmImage: 'ubuntu-latest' | |
| variables: | |
| YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn | |
| GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle |
| # A Best in Class Checklist | |
| A boiled down checklist adapted from this [post](https://www.swiftjectivec.com/a-best-in-class-app/), created by @jordanmorgan10. | |
| > To use this, create a Github Issue in your own repo, and simply copy and paste this text. | |
| ## iOS Core Technology | |
| _Things any iOS app can benefit from_ | |
| - [ ] iCloud Sync | |
| - [ ] Focus Filter Support |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
| # NOTE: must be run on a MacOS Agent! | |
| steps: | |
| - script: | | |
| # Install AVD files | |
| yes | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86_64' | |
| yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses | |
| # Create emulator | |
| echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel --package 'system-images;android-29;default;x86_64' --force |
| GRACE_TIME=80 | |
| APP_ID=org.stefanmajiros.bluepass.prod | |
| echo "Setup iOS Simulator" | |
| echo "Installing iOS Simulator dependencies" | |
| brew tap wix/brew | |
| brew update | |
| brew install applesimutils | |
| echo "Installing pods" | |
| cd ./ios && /usr/local/lib/ruby/gems/2.7.0/bin/pod install --repo-update && cd .. |
| import re | |
| import subprocess | |
| import argparse | |
| def get_repo(): | |
| """Fetches the GitHub repository details from the current branch.""" | |
| result = subprocess.run("git config --get remote.origin.url", shell=True, capture_output=True, text=True) | |
| if result.returncode != 0: | |
| print("Error fetching repository details:", result.stderr) | |
| exit(1) |