kristofer / Java Control Flow: If Statements and Loops
Last active
Java Control Flow: If Statements and Loops
Java Control Flow: If Statements and Loops
If Statements
Basic If Statement
The simplest form of decision making:
public class BasicIf {
public static void main(String[] args) {
kristofer / Vars, Ops and Types
Last active
Java Variables, Operators, and Types
Java Variables, Operators, and Types
Primitive Data Types
Java has eight primitive data types that store simple values. Here's a comprehensive overview:
public class PrimitiveTypes {
public static void main(String[] args) {
// Integer types
byte smallNumber = 127; // 8-bit, range: -128 to 127
kristofer / Jshell Snippets 1
Last active
1 | List<String> list1 = new ArrayList<>(); |
2 | list1.add("Kristofer"); |
3 | // new Scanner(System.in).next(); |
4 | // input("Howdy"); |
5 | |
6 | |
7 | String input(String prompt) { |
8 | System.out.print(prompt+" "); |
9 | var sc = new Scanner(System.in); |
10 | return sc.next(); |
Markdown Cheat Sheet
Look down below for the source to this file.
Thanks for visiting The Markdown Guide!
This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.
Basic Syntax
kristofer / Must-Know Pandas Functions
Last active
really, I'm serious, memorized
You need to memorize each of these pandas functions.
It's suggested that you write them all donw longhand, add summary of what the function does, in your own words. Then create a 3by5 flash card for each one.
- loc()
- iloc()
- head(n)
- tail(n)
- info()
kristofer / Zed Font settings
Last active
To make Zed fonts bigger or whatever,
in file ~/.config/zed/settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
Ganymede
brew install jupyter
then download the Jar file; Ganymede JAR file
then run jupyter notebook
at shell.
kristofer / Things that Require ZERO Talent
Last active
12 THINGS THAT REQUIRE ZERO TALENT
- Being On Time
- Making An Effort
- Being High Energy
- Having A Positive Attitude
- Being Passionate
- Using Good Body Language
- Being Coachable
- Doing A Little Extra