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 os | |
from app import app | |
from app.database import db_session | |
from app.models.achievement import Achievement | |
from app.forms.achievement import AchievementForm | |
from flask import Blueprint, render_template, abort, request, redirect, flash, url_for | |
from werkzeug import secure_filename |
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
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
:: Se você tiver mais de um projeto com Vagrant | |
SET WORKSPACES=(^ | |
"D:\Proteste\vagrant\"^ | |
"D:\Raphael\vagrant\"^ | |
) | |
IF "%1" == "" ( |
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
Rails.application.routes.draw do | |
... | |
namespace :api, defaults: {format: 'json'} do | |
namespace :v1 do | |
resources :products, only: [:index, :show] | |
match "/products" => "products#index", via: :options | |
end | |
end |
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 | |
class AcmeController extends Controller | |
{ | |
public function indexAction() { | |
$em = $this->getDoctrine()->getManager(); | |
$conn = $em->getConnection(); | |
$conn->prepare('SET foreign_key_checks = 0')->execute(); | |
// ... | |
} |
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 Acme\HotsiteBundle\EventListener; | |
use Acme\HotsiteBundle\Controller\HotsiteSignedController; | |
use Symfony\Component\HttpKernel\Event\FilterControllerEvent; | |
use Symfony\Component\HttpFoundation\Session\Session; | |
use Symfony\Component\HttpFoundation\RedirectResponse; |
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
<Shop> | |
<shopid>22105</shopid> | |
<name>EUROSPIN</name> | |
<street>Via Maldacea 58.0 </street> | |
<zipcode>00000</zipcode> | |
<city>ROMA</city> | |
<citycode></citycode> | |
<phone></phone> | |
<fax></fax> | |
<email></email> |
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 Labone\Bundle\OrderBundle\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Process\Process; | |
use Symfony\Component\Process\Exception\ProcessFailedException; | |
use Symfony\Component\HttpFoundation\BinaryFileResponse; |
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
-- FIX sequencial | |
SELECT setval('familias_id_seq', max(id)) FROM familias |
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 App\Providers; | |
use Illuminate\View\Factory as FactoryContract; | |
class Factory extends FactoryContract | |
{ | |
/** | |
* The extension to engine bindings. |
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
[ | |
{ | |
"name": "Machado de Assis", | |
"books": [ | |
{ "name": "Dom Casmurro", "publicatedAt": "2016-05-18T16:00:00Z" }, | |
{ "name": "Contos", "publicatedAt": "2016-05-18T16:00:00Z" }, | |
{ "name": "Helena", "publicatedAt": "2016-05-18T16:00:00Z" } | |
] | |
}, | |
{ |
OlderNewer