Skip to content

Instantly share code, notes, and snippets.

View chukShirley's full-sized avatar

Chuk Shirley chukShirley

  • Sure Consulting LLC
  • Alabama
View GitHub Profile

php2rpg

Guide showing you PHP and RPG differences

  • RPG is strongly typed.
  • RPG indexes start at 1, where PHP starts at 0.
  • Variables in PHP start with a Dollar sign. ($)

Typing

@chukShirley
chukShirley / 0_reuse_code.js
Created November 4, 2015 22:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
SELECT a.*, b.NumberOfRows
FROM MYTABLE a
CROSS JOIN (SELECT COUNT(*) AS NumberOfRows FROM MYTABLE) b
'service_manager' => array (
'invokables' => array (
'AuthorizationIbmi' => 'authorization.php',
),
'factories' => array(
'dbadapter' => function($sm) {
// DB adapter config
},
'tkconn' => function ($sm) {
$dbAdapter = $sm->get('dbadapter');