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
/** | |
* Create a new order. | |
* | |
* @return void | |
*/ | |
public function createOrder() | |
{ | |
$rcoObj = $this->request->post['rcoObj']; | |
$reference = $this->request->post['reference']; | |
$response = array('success' => true, 'redirect' => 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
<?php | |
use App\Http\Controllers\BotManController; | |
use BotMan\BotMan\Middleware\ApiAi; | |
$botman = resolve('botman'); | |
$dialogflow = ApiAi::create('the-developer-token-at-dialog-flow')->listenForAction(); | |
// Apply global "received" middleware | |
$botman->middleware->received($dialogflow); |
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
// show.blade.php | |
@foreach( $arguments as $argument ) | |
<argument :argument="{{ json_encode($argument) }}" > | |
<p>{{ $argument['text'] }}</p> | |
</argument> | |
@endforeach |
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
// Document model | |
public function connectedWith() | |
{ | |
return $this->belongsToMany('App\Models\Document', 'connection_document', 'document_id', 'connected_id'); | |
} | |
public function connectedTo() | |
{ |
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
["rows"]=> | |
array(18) { | |
[0]=> | |
array(8) { | |
["order_status_id"]=> | |
string(1) "8" | |
["language_id"]=> | |
string(1) "2" | |
["name"]=> | |
string(5) "Nekad" |
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
/** | |
* Update the order reference. | |
* | |
* @param mixed $paymentId [The current paymentId] | |
* @param miced $to [What it should be updated to] | |
* @return [type] [description] | |
*/ | |
public function updatePaymentReference($paymentId, $to) { | |
if ( empty($paymentId) || empty($to) ) { | |
throw new \Exception("Payment id and to must be set"); |
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
Tjena grabbar! | |
Vi ska allesammans åka på en weekend mellan den 21/7 - 23/7 (Fredag till Söndag). | |
Fixa ledighet till fredagen den 21/7 och förnya passet. | |
Vi kommer att ordna med flyg, boende och även resturang på fredagen och lördagen. | |
Vi ska allesammans också betala för Adde. | |
Ni som ska med behöver skicka in 3000kr på ett konto som vi har startat. Då kommer vi | |
att fixa med allt och skulle det vara så att det blir pengar över så skickar vi givetvis |
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
<template> | |
<div class="ratings-component"> | |
<i class="fa fa-star" aria-hidden="true" v-for="n in fullStars"></i> | |
<i class="fa fa-star-half-o" aria-hidden="true" v-if="halfStar"></i> | |
<i class="fa fa-star-o" aria-hidden="true" v-for="n in emptyStars"></i> | |
</div> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<span class="timer-component"> | |
{{ now }} | |
</span> | |
</template> | |
<script> | |
export default { | |
props: ['ends'], | |
data() { |
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 java.util.Scanner; | |
public class Lab4 { | |
public static void main(String[] args){ | |
Scanner input = new Scanner(System.in); | |
System.out.println("Would you like to see an X or O?"); | |
String shape = input.next(); | |
Integer size; | |
while (!shape.equals("x")) { |