kristofer / Vars, Ops and Types
Zuletzt aktiv
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
Zuletzt aktiv
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
Zuletzt aktiv
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
Zuletzt aktiv
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
kristofer / Ganymede - Jupyter Notebook
Zuletzt aktiv
run Java in a notebook
Ganymede
brew install jupyter
then download the Jar file; Ganymede JAR file
then run jupyter notebook
at shell.
kristofer / Being Human
Zuletzt aktiv
Robert Heinlein, on being human.
If the discussion above sounds like gobbledygook to you, consider the famous Heinlein quote:
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
Presumably Heinlein meant his list to be representative and fluid rather than exhaustive and static. Presumably he also meant to suggest a capacity for generalized learning of new skills, including the
kristofer / Things that Require ZERO Talent
Zuletzt aktiv
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
kristofer / One-Liner Web Server
Zuletzt aktiv
python one line web server
One Liner Web Server Python3
For a Python 3 web server, from the directory containing your files, run:
python3 -m http.server 8000
Serves up the files in the directory you start it in.
kristofer / Passion Project Method
Zuletzt aktiv
a methodology to ensure eventual success in passion projects.
Outline line of Tasks
ZCW Passion Project methodology for PassionProj Week.
Each of these phases are designed to move the project from the One-Pager stage to something working by the end of the week.
There are two possible templates here, one for a 3-tier Web Applicationa and one for the creation of a Data Pipeline Application.