This file contains hidden or 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
#!/bin/bash | |
# NOTE: This file is generated by script. | |
# Modify "tpl/*" and run "./fire gen-files" | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -exuo pipefail | |
export DEBIAN_FRONTEND=noninteractive | |
export DBUS_SESSION_BUS_ADDRESS=/dev/null |
This file contains hidden or 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
const Answer = sequelize.define("question_option", { | |
id: { | |
type: Sequelize.INTEGER, | |
autoIncrement: true, | |
primaryKey: true | |
}, | |
quiz_question_id: { | |
type: Sequelize.INTEGER, | |
}, | |
text: { |
This file contains hidden or 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
const Sequelize = require('sequelize'); | |
const sequelize = new Sequelize('heroku_94b79d07738d7b2', 'be1ac71986aa53', '9c18215d', { | |
host: 'us-cdbr-iron-east-03.cleardb.net', | |
dialect: 'mysql', | |
pool: { | |
max: 10, | |
min: 0, | |
idle: 10000 | |
}, |
This file contains hidden or 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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples. |
This file contains hidden or 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
{ | |
"pubstatus":"usable", | |
"subject":[ | |
{ | |
"name":"photography", | |
"code":"01013000" | |
} | |
], | |
"urgency":3, | |
"associations":{ |
This file contains hidden or 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
$scope.submit = function() { | |
$scope.upload($scope.file); | |
}; | |
// upload on file select or drop | |
$scope.upload = function (file) { | |
Upload.upload({ | |
url: 'upload/url', | |
data: {file: file, 'username': $scope.username} | |
}).then(function (resp) { |
This file contains hidden or 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
/** | |
* Constructor. | |
* | |
* @param ViewHandlerInterface $viewHandler | |
* @param bool $forceView | |
*/ | |
public function __construct(ViewHandlerInterface $viewHandler, $forceView) | |
{ | |
$this->viewHandler = $viewHandler; | |
$this->forceView = $forceView; |
This file contains hidden or 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
public function onKernelView(GetResponseForControllerResultEvent $event) | |
{ | |
$request = $event->getRequest(); | |
if (!$request->attributes->get(FOSRestBundle::ZONE_ATTRIBUTE, true)) { | |
return false; | |
} |
This file contains hidden or 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
# app/config/config.yml | |
fos_rest: | |
zone: | |
- { path: ^/api/* } |
This file contains hidden or 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
<theme> | |
.... | |
<articlesLists> # main section | |
# single playlist declaration, if playlist not exists on theme assigning action then it will be created automaticaly | |
<list name="FrontPage"> | |
<template file="article.tpl" /> # single template file assigned to playlist declaration | |
</list> | |
<list name="Second Playlist"> | |
<template file="issue.tpl" /> | |
<template file="front.tpl" /> |