- Hotels
- Rooms
- Additional Services
- Customers
- Bookings
- Guests
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
require 'sinatra' | |
require 'sinatra/reloader' if development? | |
helpers do | |
def protected! | |
return if authorized? | |
headers['WWW-Authenticate'] = 'Basic realm="Restricted Area"' | |
halt 401, "Not authorized\n" | |
end |
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
<?php | |
// Our database config | |
$db_host = "localhost"; | |
$db_user = "yolol"; | |
$db_pass = "yolol_pass"; | |
$db_name = "yolol"; | |
// Connect to our MySQL database | |
$conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name); |
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
# Make sure you have coreutils, install it like this: | |
# brew install coreutils | |
# Paste this in ~/.bash_profiles | |
function howbig() { du -hs ./*/ | gsort -h; } |
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
# Refer http://literacy.kent.edu/Minigrants/Cinci/romanchart.htm | |
require 'rspec/given' | |
require 'roman_numeral_converter' | |
describe RomanNumeralConverter do | |
Given(:converter) { RomanNumeralConverter.new } | |
Then { converter.convert(1) == 'I' } | |
Then { converter.convert(2) == 'II' } |

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
create database store; | |
connect to store; | |
-- create tables | |
create table sales_representatives | |
( | |
id int primary key not null, | |
name varchar(255), |
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
require 'nfc' | |
# Read | |
c = NFC::Context.new | |
d = c.open nil | |
puts "Put your card..." | |
e = d.select | |
# UID |