kristofer / Memoization: Let’s Be Efficient, Shall We?
Última atividade
Ever ask the same question over and over? Annoying, right? That’s what your computer thinks too.
| 1 | # example of memoization in python for fibonacci |
| 2 | |
| 3 | # Memoization: Let’s Be Efficient, Shall We? |
| 4 | # Ever worry about recursion and the stack and so on... |
| 5 | # Ever ask the same question over and over? |
| 6 | # Annoying, right? That’s what your computer thinks too. |
| 7 | # Memoization fixes this by storing results so you don’t have to repeat expensive calculations. |
| 8 | def fib(n, memo={}): |
| 9 | if n in memo: |
| 10 | return memo[n] |
kristofer / Java FizzBuzz Like no Other
Última atividade
From https://rohan.ga
| 1 | import java.util.*; |
| 2 | import java.util.function.Predicate; |
| 3 | import java.util.stream.Collectors; |
| 4 | import java.util.stream.IntStream; |
| 5 | |
| 6 | // wowey, wow, wow. |
| 7 | |
| 8 | public class Main { |
| 9 | public static void main(String[] args) { |
| 10 | int[] arr = IntStream.rangeClosed(1, 100).toArray(); |
kristofer / Ten VMs in Java
Última atividade
Ten Simple Virtual machines, in Java, gen's by ChatGPT-4o
This was the prompt of these 10 Java virtual machines all created by ChatGPT-4o.
[
{'role': 'system', 'content': 'you are an experienced Java programming language developer.'},
{'role': 'user',
'content': 'generate a virtual machine runtime which has an operand stack and a context stack for frames.'}
]
kristofer / paralegalwebsites.md
Última atividade
I'd like to become a paralegal in Delaware. Recommend some authoritative websites which can help me.
Here are some authoritative websites that can help you on your journey to becoming a paralegal in Delaware:
-
American Bar Association (ABA) - Paralegal Education Programs
The ABA provides a list of approved paralegal education programs, which can help you choose a reputable program that meets high standards.
Website: americanbar.org -
Delaware Paralegal Association (DPA)
kristofer / paralegal.md
Última atividade
Becoming a paralegal in Delaware involves a combination of education, skills development, and sometimes gaining certification. Here’s a step-by-step guide on how to pursue a paralegal career in Delaware:
1. Obtain the Necessary Education
- High School Diploma or GED: The first step is to have a high school diploma or equivalent.
- Paralegal Studies Program: Enroll in a paralegal studies program. While Delaware does not mandate specific educational requirements, most employers prefer candidates with formal education in paralegal studies. You can choose from the following:
- Associate Degree: This is a two-year program offered by community colleges and technical schools.
- Bachelor's Degree: A four-year degree in paralegal studies or a related field.
- Paralegal Certificate: For those who already hold a degree in another field, a paralegal certificate program, which typically lasts a few months to a year, is a good option.
2. Consider National Certification
kristofer / Riplz.html
Última atividade
| 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <style> |
| 6 | body, html { |
| 7 | height: 100%; |
| 8 | } |
| 9 | |
| 10 | body { |
kristofer / HTTP AytchTeeTeePee
Última atividade
| 1 | package rocks.zipcode; |
| 2 | |
| 3 | import java.io.IOException; |
| 4 | import java.net.ServerSocket; |
| 5 | import java.net.Socket; |
| 6 | import java.util.Date; |
| 7 | |
| 8 | |
| 9 | // Show how Sockets work. Lower level than Main class. |
| 10 | class SimpleHTTPServer { |
kristofer / JSON Fundamentals
Última atividade
Just an introduction
JSON Fundamentals
JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client, so it can be displayed on a web page, or vice versa). You'll come across it quite often. Better get a handle on it.