All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

Login


All New
's Avatar

kristofer

Joined 1714567308

Recently created
Least recently created
Recently updated
Least recently updated
All gists 105
kristofer's Avatar

kristofer / Hamlet by Shake-speare

0 likes
0 forks
1 files
Last active 1731079354
1 THE TRAGEDY OF HAMLET, PRINCE OF DENMARK
2
3
4 by William Shakespeare
5
6
7
8 Dramatis Personae
9
10 Claudius, King of Denmark.
kristofer's Avatar

kristofer / Details Matter

0 likes
0 forks
1 files
Last active 1729274913
a small difference makes results wildly different
1
2 public class WhoaWhat {
3 public static void main(String[] args) {
4 System.out.println(doOne() + " " + doTwo());
5 // will print 2048 4 - but why?
6 }
7 private static int doOne() {
8 int result = 2;
9 for(int i = 0; i < 10; i++)
10 {
kristofer's Avatar

kristofer / BugReporter (java)

0 likes
0 forks
1 files
Last active 1727273021
cool class from https://github.com/RohitAwate/Everest/blob/master/BugReporter/src/BugReporter.java
1 /*
2 * Copyright 2018 Rohit Awate.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
kristofer's Avatar

kristofer / Quine-Py

0 likes
0 forks
1 files
Last active 1727095994
A quine is a clever bit of code that outputs its own source code.
1 # Quine - Program That Reproduces Itself
2 # A quine is a clever bit of code that outputs its own source code.
3 # It’s like looking in the mirror and seeing… well, your code staring right back at you.
4
5
6 s = 's = {!r}; print(s.format(s))'; print(s.format(s))
7
8 #output => s = 's = {!r}; print(s.format(s))'; print(s.format(s))
kristofer's Avatar

kristofer / Memoization: Let’s Be Efficient, Shall We?

0 likes
0 forks
1 files
Last active 1727095887
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's Avatar

kristofer / Java FizzBuzz Like no Other

0 likes
0 forks
2 files
Last active 1726664443
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's Avatar

kristofer / Ten VMs in Java

0 likes
0 forks
11 files
Last active 1725392953
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's Avatar

kristofer / git Oops

0 likes
0 forks
1 files
Last active 1724184521
to go back to a previous commit.

Rogue Coder?

Working on your own passion project and just want it to work? Follow these instructions below, they’ve worked reliably for me for years.

Working with others on a project? Git is complicated. Research and consider other answers, and discuss with your team before you do something rash. And these options are the definition of rash.

Reverting Working Copy to Most Recent Commit

kristofer's Avatar

kristofer / paralegalwebsites.md

0 likes
0 forks
1 files
Last active 1723726881

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:

  1. 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

  2. Delaware Paralegal Association (DPA)

kristofer's Avatar

kristofer / paralegal.md

0 likes
0 forks
1 files
Last active 1723726795

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

Newer Older

Powered by Opengist ⋅ Load: 132ms⋅

English
Čeština Deutsch English Español Français Magyar Português Русский 中文 繁體中文