This file contains 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
object User { | |
id int | |
username string | |
password string | |
address object { | |
zip, street string | |
number int | |
} | |
} |
This file contains 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
const put = (cache, params, result) => { | |
let node = cache; | |
for (const param of params) { | |
const key = param.toString(); | |
if (!node[key]) { | |
node[key] = {}; | |
} |
This file contains 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
// g++ bezier-casteljau-opengl.cpp -lSDL2 -lGL -lglut | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <SDL2/SDL.h> | |
#include <GL/gl.h> | |
#include <GL/glut.h> | |
struct Vec2 { |
This file contains 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
// gcc -Wall -Werror -Wextra -std=c11 orbiting-spheres-gl.c -lSDL2 -lGL -lglut -lm | |
#include <math.h> | |
#include <stdbool.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
#include <GL/gl.h> | |
#include <GL/glut.h> | |
const int WINDOW_WIDTH = 800; |
This file contains 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 math import exp, tanh | |
from typing import List, Tuple | |
Matrix = List[List[float]] | |
def build_matrix(number_of_rows: int, number_of_columns: int) -> Matrix: | |
return [[0.0] * number_of_columns for _ in range(number_of_rows)] | |
This file contains 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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Color Transition</title> | |
<style> | |
* { | |
margin: 0; |
This file contains 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
class User { | |
createdAt: Date = new Date(); | |
constructor( | |
public id: number, | |
public username: string, | |
public password: string, | |
public email: string | |
) { } | |
} |
This file contains 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
#include "queue.h" | |
#include <assert.h> | |
static Queue* queue_malloc(size_t capacity, object_copy copy_func, object_free free_func) { | |
Queue* queue = NULL; | |
Vector* array = NULL; | |
queue = calloc(1, sizeof(Queue)); | |
if (queue == NULL) |
This file contains 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
import java.io.IOException; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import java.util.stream.Collectors; | |
public class ConsoleLoadBar { | |
private static final Logger LOGGER = Logger.getLogger(ConsoleLoadBar.class.getSimpleName()); |
This file contains 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 amazoncorretto:17-alpine-jdk AS jdk-builder | |
WORKDIR /app | |
COPY . ./ | |
#gradle | |
#RUN ./gradlew build | |
#maven |
NewerOlder