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
$product = new Product(); | |
$product->setName('A Foo Bar'); | |
$product->setPrice('19.99'); | |
$product->setDescription('Lorem ipsum dolor'); | |
$em = $this->getDoctrine()->getManager(); | |
$em->persist($product); | |
$em->flush(); | |
$product->getId() |
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
{% stylesheets filter='compass' | |
'@sass' | |
'bundles/manymulesfontawesome/sass/font-awesome.scss' | |
output="css/*.css" %} | |
<link rel="stylesheet" href="{{ asset_url }}" /> | |
{% endstylesheets %} |
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 external libs */ | |
@import "plugins/bootstrap.scss"; | |
/* Import used compass libs */ | |
@import "compass/css3"; | |
@import "compass/utilities"; | |
@import "compass/reset"; |
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
// test 2erfolge, dezimal 0,1,2,3 | |
var laenge = 2; | |
var anzahl = Math.pow(2, laenge); | |
var i, j; | |
// document.write(anzahl); | |
for (i = 0; i < anzahl; i++) { | |
document.write(i + ": <br>"); | |
for (j=0; j < laenge; j++) { | |
var binaer = | |
document.write(j+" "); |
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
{% stylesheets filter='compass' '@sass' 'bundles/manymulesfontawesome/sass/font-awesome.scss' output="css/*.css" %} | |
<link rel="stylesheet" href="{{ asset_url }}" /> | |
{% endstylesheets %} |
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
# config.yml | |
################################### | |
# first line | |
imports: | |
- { resource: assets.yml } | |
# Assetic Configuration | |
assetic: | |
debug: %kernel.debug% | |
use_controller: false |
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
$urls = array ("http://onapp1.orf.at/webcam/fm4/fod/unlimited.xspf", | |
"http://onapp1.orf.at/webcam/fm4/fod/soundpark.xspf"); | |
function downloadFile ($url, $path) { | |
$newfname = $path; | |
$file = fopen ($url, "rb"); | |
if ($file) { | |
$newf = fopen ($newfname, "wb"); | |
if ($newf) |
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": "symfony/framework-standard-edition", | |
"description": "The \"Symfony Standard Edition\" distribution", | |
"autoload": { | |
"psr-0": { "": "src/" } | |
}, | |
"require": { | |
"php": ">=5.3.3", | |
"symfony/symfony": "2.2.*", | |
"doctrine/orm": ">=2.2.3,<2.4-dev", |
NewerOlder