Skip to content

Instantly share code, notes, and snippets.

View kana-ph's full-sized avatar

KaNa kana-ph

  • Metro Manila, PH
View GitHub Profile
@avafloww
avafloww / PhpJava.java
Last active June 13, 2024 07:36
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@kana-ph
kana-ph / psql-guide.md
Last active March 15, 2017 10:50
PSQL Install/Setup Guide

Installing postgresql

Fedora, RHEL, CentOS, or similar OS

# yum install postgresql
# yum install postgresql-server

Debian, Ubuntu, Mint, or similar OS