$ touch /usr/share/applications/robomongo.desktop
$ vim /usr/share/applications/robomongo.desktop
<?php | |
namespace AppBundle\Entity\Traits; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Adds created at and updated at timestamps to entities. | |
* Entities using this must have HasLifecycleCallbacks annotation. | |
* |
function process(rule) { | |
if(rule.cssRules) { | |
for(var i=rule.cssRules.length-1; i>=0; i--) { | |
process(rule.cssRules[i]); | |
} | |
} | |
if(rule.type == CSSRule.MEDIA_RULE) { | |
if(window.matchMedia(rule.media.mediaText).matches) { | |
rule.media.mediaText = "all"; | |
} else { |
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
var assert = require('assert') | |
console.log('\n==========='); | |
console.log(' mongoose version: %s', mongoose.version); | |
console.log('========\n\n'); | |
var dbname = 'testing_geojsonPoint'; |
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); |