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
class Student { | |
String name; | |
int age; | |
// A parameterized constructor | |
Student(String newName, int newAge) { | |
name = newName; | |
age = newAge; | |
} | |
} |
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
class Book { | |
String title; | |
// A no-argument constructor | |
Book() { | |
title = "Unknown"; | |
} | |
} | |
public class Main { |
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
class Bike { | |
int speed; | |
// Notice, no constructor is defined here | |
} | |
public class Main { | |
public static void main(String[] args) { | |
Bike myBike = new Bike(); | |
System.out.println("Speed: " + myBike.speed); // Outputs: Speed: 0 |
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
# Put this file in src/main/jkube | |
spec: | |
template: | |
spec: | |
containers: | |
- envFrom: | |
- secretRef: | |
name: my-secret |
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
cat data.json | jq -r '["Name", "Email"], (.[] | [.name, .email]) | @csv' |
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
[ | |
{ | |
"name": "John Doe", | |
"age": 32, | |
"email": "[email protected]" | |
}, | |
{ | |
"name": "Jane Smith", | |
"age": 28, | |
"email": "[email protected]" |
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
# For macOS (using Homebrew) | |
brew install jq | |
# For Ubuntu/Debian Linux | |
sudo apt-get install jq |
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
Foo: | |
Type: AWS::Serverless::Function | |
Properties: | |
Policies: | |
- AthenaQueryPolicy: | |
WorkGroupName: | |
primary |
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
cd ~/annals/storm/ | |
mkdir Storm202{0,1} | |
cat Storm\ 2020\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2020/Storm2020_{#}.csv' | |
cat Storm\ 2021\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2021/Storm2021_{#}.csv' | |
zip -r storm.zip Storm202[01] |
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
cd ~/annals/storm/ | |
mkdir Storm202{0,1} | |
cat Storm\ 2020\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2020/Storm2020_{#}.csv' | |
cat Storm\ 2021\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2021/Storm2021_{#}.csv' | |
zip -r storm.zip Storm202[01] |
NewerOlder