Skip to content

Instantly share code, notes, and snippets.

View paynegreen's full-sized avatar
🏠
Working from home

Edwin Tsatsu paynegreen

🏠
Working from home
View GitHub Profile
@paynegreen
paynegreen / .iex.exs
Created May 9, 2023 22:04 — forked from DaniruKun/.iex.exs
My custom global IEx script file that is preloaded before each IEx session. Adds some convenience functions.
IO.puts("Using .iex.exs file loaded from #{__DIR__}/.iex.exs")
defmodule Util do
def atom_status do
limit = :erlang.system_info(:atom_limit)
count = :erlang.system_info(:atom_count)
IO.puts("Currently using #{count} / #{limit} atoms")
end
@paynegreen
paynegreen / Settings
Created January 24, 2020 10:08
Settings vscode
s
@paynegreen
paynegreen / events.json
Last active September 24, 2019 17:18
get all events
[{
"name": "San Francisco Startup",
"description": "Startup socials explores",
"venue": ["Open Lounge"],
"banner_url": "",
"host_url": "",
"host_name": "",
"attendees": [{
"name": "",
"picture": ""
@paynegreen
paynegreen / wellness.json
Last active September 24, 2019 17:02
Fetch all wellness sessions
[{
"name": "Deep Release for Hips",
"description": "Incorporating asanas, pranayama",
"venue": "L&O Wellness",
"price_per_session": 20,
"slots": [{
"date": "",
"from": "",
"to": "",
"capacity": 20,
@paynegreen
paynegreen / tablereservation.json
Created September 24, 2019 16:54
Table reservation structure
[{
"name": "Reservation",
"description": "Enter your booking desription here",
"amenities": [
"45 seats available"
],
"capacity": 45,
"available_capacity": 20,
"bookable_seat_limit": 3,
"max_booking_hours": "02:00",
@paynegreen
paynegreen / bookARoom.json
Created September 24, 2019 16:42
bookings a room
{
"from": "2012-01-01 12:00 +0000",
"to": "2012-01-01 14:00 +0000",
"title": "test booking",
}
@paynegreen
paynegreen / bookings.json
Created September 24, 2019 16:34
Bookings response
[{
"id": "uuid",
"name": "Room",
"price_per_hour": "10.0",
"capacity": 10,
"amenities": [
"projector",
"wifi"
],
"description": "fits up to 10 people",
import java.util.*;
public class ManagerTest {
public static void main(String[] args)
{
// construct a Manager object
Manager boss = new Manager("Carl Cracker", 80000, 1987, 12, 15);
boss.setBonus(5000);
Employee[] staff = new Employee[3];
public interface URLProcessor {
public void process(URL url) throws IOException;
public abstract class URLProcessorBase implements URLProcessor {
public void process(URL url) throws IOException {
URLConnection urlConnection = url.openConnection();
InputStream input = urlConnection.getInputStream();