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
alias go='go_with_lint' | |
function go_with_lint() { | |
local args=("$@") | |
local lint_cmd=("golangci-lint run .") | |
# Check if "run" or "build" command is being used | |
if [[ ${args[0]} == "run" || ${args[0]} == "build" ]]; then | |
# If a file or directory argument is provided, add it to the lint command | |
if [[ ${#args[@]} -gt 1 ]]; then | |
local file_or_dir="${args[1]}" |
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
/* Run this code using an IDE that supports Java development*/ | |
import java.util.Date; // to allow our tasks to run at the current time | |
import java.util.Timer; // contains the method which will allow a task to run at specific intervals | |
import java.util.TimerTask; //contains an abstract inherited run() method | |
public class drawChallenge { | |
static Timer timer = new Timer(); | |
static int i = 0; | |
public static void main(String args[]) { |