This file contains hidden or 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
| version: '3.3' | |
| volumes: | |
| prometheus-data: | |
| driver: local | |
| grafana-data: | |
| driver: local | |
| services: | |
| prometheus: | |
| image: prom/prometheus:latest | |
| container_name: prometheus |
This file contains hidden or 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
| FROM node:22-alpine3.18 | |
| WORKDIR /usr/app | |
| RUN echo << EOF > index.js \ | |
| "for (let i = 0; i < 1000; i++);" \ | |
| "throw new Error('I deliberately need to crash now...');" \ | |
| EOF | |
| CMD ["node", "index.js"] |
This file contains hidden or 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
| package org.evryword; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.util.HashSet; | |
| import java.util.Scanner; | |
| import java.util.TreeSet; | |
| import javax.swing.*; | |
| public class Main { |
This file contains hidden or 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
| package org.evryword; | |
| import java.util.Objects; | |
| public class Cell { | |
| public char content = ' '; | |
| public Cell next; | |
| public Cell prev; | |
| @Override |
This file contains hidden or 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
| package org.evryword.datastructures; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.stream.IntStream; | |
| public class MyList { | |
| public static void main(String[] args) { |
This file contains hidden or 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
| package org.evryword.simpleinterest; | |
| public class SimpleInterest { | |
| public static void main(String[] args) { | |
| final double totalInterest = calculateSimpleInterest(); | |
| System.out.format("[totalInterest] %f", totalInterest); | |
| } | |
| public static double calculateSimpleInterest() { | |
| final int n = 10; |
This file contains hidden or 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
| package org.evryword.jdbcconnection; | |
| import java.sql.*; | |
| import java.util.Properties; | |
| import java.util.Scanner; | |
| public class JDBCConnection { | |
| public final static String databaseName = "peaceco"; | |
| public final static String databaseUser = "root"; | |
| public final static String databasePassword = "anythingICanImagine"; |
This file contains hidden or 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
| System.out.println("===Program Started==="); | |
| class TestClass { | |
| public final String name; | |
| public final int age; | |
| public TestClass(String name, int age) { | |
| this.name = name; | |
| this.age = age; |
This file contains hidden or 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
| /** | |
| * 1. Immediate retry | |
| * 2. delayed retry | |
| * 3. retry with backoff | |
| */ | |
| import { Injectable } from "@angular/core"; | |
| import { HttpClient } from "@angular/common/http"; | |
| import { EMPTY, Observable, of, throwError } from "rxjs"; | |
| import { |
This file contains hidden or 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
| server { | |
| server_name api-ashgrid.ashipaelectric.com; | |
| listen 80; | |
| listen [::]:80; | |
| location /electric-utility { | |
| return 301 https://$host:443$request_uri; | |
| } | |
| } |
NewerOlder