Skip to content

Instantly share code, notes, and snippets.

View betancour's full-sized avatar
🎯
Focusing

Yitzhak B. Solórzano betancour

🎯
Focusing
View GitHub Profile
@betancour
betancour / Java swing
Created January 6, 2023 02:10
Swing example
// java Program to create a simple JWindow
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
class solveit extends JFrame implements ActionListener {
// frame
@betancour
betancour / ft_pushchar.c
Created July 8, 2022 23:26
C Piscina Rush 2
// RUSH 42
// Only allowed Write function
#include <unistd.h>
int rush(int x, int y)
{
int _width_x;
int _height_y;
@betancour
betancour / Config Script
Created February 15, 2022 18:25
Initial container Script
#!/bin/sh
# This script is called from the Dockerfile ENTRYPOINT and stored in the
# root of the resulting workspace container for reference. If /home has
# anything in it then use the permissions and ownership information from
# the first directory found within it for creating a new user on the
# system looking into the .config/ws/config.yml file within that
# directory for the user and group name and such. In this way, the ws
# workspace container managmenet utility can pass information to docker
# during "run" time for the container keeping the workspace containers
@betancour
betancour / Mandelbrot.java
Last active December 20, 2021 17:40
Mandelbrot Generator
/*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software