Or how to turn this:
into this:
/** | |
* Example gulpfile.js | |
*/ | |
'use strict'; | |
// THIS CHECK SHOULD BE THE FIRST THING IN THIS FILE | |
// This is to ensure that we catch env issues before we error while requiring other dependencies. | |
const engines = require('./package.json').engines; |
#!/usr/bin/env node | |
// the pathname of the url without the leading '/' is used as softoken pin | |
// so make the call with http://localhost:8000/<softoken-pin> | |
const https = require('https'), | |
fs = require("fs"), | |
url = require('url'), | |
exec = require('child_process').exec; |
<?php | |
/* | |
* Example of taking a GET req into a method and persisting a new obj to a db | |
* using the Doctrine ORM and annotations in PHP | |
*/ | |
// ... ... ... | |
// Controller class declaration and misc logic | |
// ... ... ... | |
<?php | |
/* | |
* An example method with Symfony2 style routing config'd via annotation | |
* Illustrating how to use either a supplied param or a GET request key:value | |
* To retrieve and pass data to be rendered | |
*/ | |
// ... ... ... | |
// Controller class declaration and other logic | |
// ... ... ... |
<?php | |
/** | |
* An example Symfony2 Entity that uses annotation for the ORM mapping config | |
* | |
*/ | |
namespace Jbalthis\ExampleBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; |
# =================================================================== | |
# Example Symfony2 base config in .yml | |
# Illustrates how to include external .yml config files | |
# Various commonly used bundles | |
# | |
# app/config/config.yml - Base Framework Configuration | |
# =================================================================== | |
# ===== imports ===== | |
imports: |
{# An example of including external css stylesheets as well as local styles in a Twig template #} | |
{# Incorporates bootstrap, jquery, and jquery-ui stylesheets #} | |
{# Also illustrates how to have a dynamic title inserted into each page by Twig #} | |
<head> | |
{% block head %} | |
<meta charset="UTF-8" /> | |
{% block head_style %} | |
{% stylesheets |