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
// Lifted from https://stackoverflow.com/a/22103222 | |
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console.log = function(msg) { | |
alert(msg); | |
}; | |
} |
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 | |
namespace Hari\User_Bundle\Action; | |
use Aura\Web\Request; | |
use Hari\User_Bundle\Input\LoginForm; | |
use Hari\User_Bundle\Responder\LoginResponder; | |
use Aura\Auth\Adapter\AbstractInterface as AuthAdapter; | |
use Aura\Auth\User; | |
class LoginAction extends AbstractUserAction |
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 | |
$di->params['Aura\Asset_Bundle\AssetService'] = array( | |
'map' => array( | |
'hari/user-bundle' => dirname(__DIR__) . '/web' | |
), | |
); | |
$di->params['Aura\Asset_Bundle\AssetService'] = array( | |
'types' => array(), | |
); |
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 | |
namespace Hello; | |
class World | |
{ | |
public function display() | |
{ | |
return imap_connect('imap.example.com'); | |
} | |
} |
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 | |
namespace Hello; | |
class World | |
{ | |
public function display() | |
{ | |
return imap_connect('imap.example.com'); | |
} | |
} |
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 | |
namespace Aura\Framework_Project\_Config; | |
use Aura\Di\Config; | |
use Aura\Di\Container; | |
class Common extends Config | |
{ | |
public function define(Container $di) | |
{ |
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": { | |
"aura/sql": "~2.0.0", | |
"aura/sqlquery": "~2.0.0" | |
} | |
} |
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
import sys, traceback | |
def func1(): | |
try: | |
raise Exception | |
except: | |
# print (" %s " % sys.exc_info()[0]) | |
exc_type, exc_value, exc_traceback = sys.exc_info() | |
lines = traceback.format_exception(exc_type, exc_value, exc_traceback) | |
print ''.join(line.strip() + ' ' for line in lines) |
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
-- Adminer 4.1.0 MySQL dump | |
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS `authors`; | |
CREATE TABLE `authors` ( | |
`id` varchar(255) NOT NULL, |