Skip to content

Instantly share code, notes, and snippets.

View MarGul's full-sized avatar

Marcus Gullberg MarGul

View GitHub Profile
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")) {
<template>
<span class="timer-component">
{{ now }}
</span>
</template>
<script>
export default {
props: ['ends'],
data() {
<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 {
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
/**
* 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");
["rows"]=>
array(18) {
[0]=>
array(8) {
["order_status_id"]=>
string(1) "8"
["language_id"]=>
string(1) "2"
["name"]=>
string(5) "Nekad"
// Document model
public function connectedWith()
{
return $this->belongsToMany('App\Models\Document', 'connection_document', 'document_id', 'connected_id');
}
public function connectedTo()
{
// show.blade.php
@foreach( $arguments as $argument )
<argument :argument="{{ json_encode($argument) }}" >
<p>{{ $argument['text'] }}</p>
</argument>
@endforeach
<?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);
@MarGul
MarGul / resurs_checkout.php
Created November 11, 2019 13:26
Lägg till detta i createOrder
/**
* 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);