Skip to content

Instantly share code, notes, and snippets.

@3onyc
3onyc / 00_db.sql
Last active December 28, 2015 08:09
SQLAlchemy Issue
CREATE TABLE "test" (
"date" datetime
);
INSERT INTO test VALUES(1384008289278);
@3onyc
3onyc / gist:8434142
Created January 15, 2014 10:39
Getting the Laravel session in a separate PHP file, honours session settings in config Laravel config.
<?php
require_once '/path/to/laravel/bootstrap/autoload.php';
// Initialize the app
$app = require '/path/to/laravel/bootstrap/start.php';
$request = $app['request'];
// Decrypt the cookies
$cookieGuard = new Guard($app, $app['encrypter']);
FROM stackbrew/ubuntu:13.10
RUN mkdir /opt/example && \
touch /opt/example/.keep && \
chown -R www-data:www-data /opt/example && \
chmod -R ug+rwX,o-rwx /opt/example && \
ls -alh /opt
VOLUME /opt/example
Host dokku.host
Port 2222
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
// ...
saveTitle() {
this.get('model').save().then((list) => {
this.set('editingTitle', false);
this.transitionToRoute('todo-list-edit', list)
});
FatalThrowableError in 4ca3b6ef52970a395543bee66d127ec935b1acfa.php line 17: Fatal error: Call to undefined method stdClass::has()
in 4ca3b6ef52970a395543bee66d127ec935b1acfa.php line 17
at include() in PhpEngine.php line 42
at PhpEngine->evaluatePath('/home/user/dev/appdev/storage/framework/views/4ca3b6ef52970a395543bee66d127ec935b1acfa.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(stdClass))) in CompilerEngine.php line 59
at CompilerEngine->get('/home/user/dev/appdev/resources/views/auth/login.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(stdClass))) in View.php line 147
at View->getContents() in View.php line 118
at View->renderContents() in View.php line 83
at View->render() in Response.php line 53
at Response->setContent(object(View)) in Response.php line 199