Skip to content

Instantly share code, notes, and snippets.

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

Bohdan Tsekhanskyi samael

🏠
Working from home
View GitHub Profile
@samael
samael / Bohemian Rhapsody in Javascript
Created November 13, 2019 12:43 — forked from maephisto/Bohemian Rhapsody in Javascript
Bohemian Rhapsody in Javascript
try {
assert(Life.isReal);
assert(Life.isFantasy);
} catch (LandSlideException ex) {
while(!Reality.isEscapable) {
self.eyes.forEach(function(eye) {
eye
.open()
.lookTo(Sky)
.see();
@samael
samael / php-pdo-mysql-crud.md
Created May 7, 2018 09:13 — forked from odan/php-pdo-mysql-crud.md
Basic CRUD operations with PDO and MySQL

Basic CRUD operations with PDO

CRUD = Create, Read, Update, Delete

Open a database connection

$host = '127.0.0.1';
$dbname = 'test';
$username = 'root';