what to put in owershell profile code example

Example 1: how to put a gridpain in a vbox

GridPane grid = new GridPane();
        grid.add(label,0,0);
        grid.add(textField,1,0);

        VBox box = new VBox();
        box.getChildren().addAll(txt,grid);
        root.getChildren().add(box);*/

Example 2: How to use my constants in Larvel

Create a file constants.php inside app/config/ and put your settings in an array:

<?php
//file : app/config/constants.php

return [
	'ADMIN_NAME' => 'administrator'
];

Then anywhere in your controllers or views you can get the value by using Config Facade:

echo Config::get('constants.ADMIN_NAME');

Example 3: What does @variable stand for in Ruby

@variable - is an "instance" variable. 
It can be accessed with any method inside the class.

Tags:

Ruby Example