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
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 |
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
s |
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
[{ | |
"name": "San Francisco Startup", | |
"description": "Startup socials explores", | |
"venue": ["Open Lounge"], | |
"banner_url": "", | |
"host_url": "", | |
"host_name": "", | |
"attendees": [{ | |
"name": "", | |
"picture": "" |
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
[{ | |
"name": "Deep Release for Hips", | |
"description": "Incorporating asanas, pranayama", | |
"venue": "L&O Wellness", | |
"price_per_session": 20, | |
"slots": [{ | |
"date": "", | |
"from": "", | |
"to": "", | |
"capacity": 20, |
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
[{ | |
"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", |
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": "2012-01-01 12:00 +0000", | |
"to": "2012-01-01 14:00 +0000", | |
"title": "test booking", | |
} |
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
[{ | |
"id": "uuid", | |
"name": "Room", | |
"price_per_hour": "10.0", | |
"capacity": 10, | |
"amenities": [ | |
"projector", | |
"wifi" | |
], | |
"description": "fits up to 10 people", |
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
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]; |
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
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(); |