Put this file code
in C:\Users\<username>\AppData\Local\Code\bin
aside code.cmd
.
Assuming this path is already in your %PATH%
you can now run the command to open a file
code file.txt
module app { | |
'use strict'; | |
angular | |
.module('app.entity') | |
.config(routes); | |
routes.$inject = ['$stateProvider']; |
public class BaseEntity { | |
public Guid Guid { get; set; } | |
public int Id { get; set; } | |
} |
@laravelphp is there a way to change directory structure? I'd like to have functional based separation instead of a technical separation.
This way you don't have to switch between directories like cd ../../../resources/views/<ControllerName>
to get to your views.
Http
ControllerName
ControllerControllerName
Controller.phpViewName1
.blade.php{ | |
init: function(elevators, floors) { | |
var floorsWithPassengersDown = []; | |
var floorsWithPassengersUp = []; | |
for (var e = 0; e < elevators.length; e++){ | |
elevators[e].on("idle", function() { | |
var floorsWithPassengers = floorsWithPassengersDown.concat(floorsWithPassengersUp); | |
// go to a floor with passengers | |
if(floorsWithPassengers.length > 0){ |
<input id="itemcodeSupplier" type="text" name="artikelcodeLeverancier" placeholder="Binnen gekozen productklasse (bijv. code 1; code2)" | |
ng-disabled="!Filters.SelectedProductClassId" ng-model="FiltersText.SelectedItemCodeSuppliers" | |
ng-list=";" ui-validate="{maxLength : 'maxLengthValidator($value, 35)' }" /> | |
<span style="color: red" ng-show="selectie.artikelcodeLeverancier.$error.maxLength"> | |
<script> | |
var maxLengthValidator = function ($value, 35){ | |
return $value.length <= 35; | |
} |
var memstream = new MemoryStream(); | |
using (var file = new FileStream("C:/iets/iets.jpg", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) | |
{ | |
// hier gebruik je de stream, en kopieer je de file naar het geheugen (de memorystream) | |
file.CopyTo(memstream); | |
// En als je aan 't einde bent gekomen doet ie automatisch: (bij de '}') | |
file.Dispose(); | |
// en in Dispose(); gebeuren een aantal dingen: |
<?php | |
$modelPersoonHasStdTaak = PersoonHasStdTaak::model()->findByPk(array('idPersoon' => 5, 'idPlanning' => 5, 'idStdActiviteit' => 4, 'idStdTaak' => 7)); | |
echo $this->widget('editable.EditableField', array( | |
'type' => 'select', | |
'model' => $modelPersoonHasStdTaak, | |
'attribute' => 'idPersoon0', // idPersoon0 is the attribute to show (i think). At least thats what I can see on the page | |
'url' => $this->createUrl('persoonhasstdtaak/updatepersoonhasstdtaak'), | |
'source' => CHtml::listData(Persoon::model()->findAll(), 'idPersoon', 'Naam'), | |
'placement' => 'right', |