Skip to content

Instantly share code, notes, and snippets.

View RaymondBenc's full-sized avatar

Raymond Benc RaymondBenc

View GitHub Profile
@RaymondBenc
RaymondBenc / create-app
Last active August 29, 2015 14:02
Create an App in phpMyAdmin
1) Open table "phpfox_app"
2) Insert your App
3) Add custom JSON in the "data" column
Example to add to the <header>...
{"header":"<script>alert('Hello World');</script>"}
Example to add to the end of the HTML body...
{"footer":"<script>alert('Hello World');</script>"}
<?php
namespace M9;
class Test {
function __construct($function) {
$object = new M9Test();
$return = call_user_func($function, $object);
}
}
<?php
namespace M9;
(new Test(function(M9Test $tester) {
if ($tester->is_logged_in()){
$tester->log_out();
$tester->log_in_as("normal");
}
}));
@RaymondBenc
RaymondBenc / sample-app.php
Created March 11, 2014 13:45
Sample M9 App
<m:h1>Example Page</m:h1>
My Image:<br />
<m:image />
<br />
My Name: <m:name />
<br />
My Friends: <m:friends />
@RaymondBenc
RaymondBenc / gist:9132634
Created February 21, 2014 11:17
Convert all images in a folder using mogrify
mogrify -path /new-path -resize 16x16 /path-to-images-to-resize/*