Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
At Office

Jagroop Singh jagroop

👨‍💻
At Office
View GitHub Profile
View SoapClientHelper.php
<?php
namespace App\Helpers;
class SoapClientHelper {
public static function request($name, $params = [])
{
$wsdl = config('wsdl.'.$name.'.endpoint');
$method = config('wsdl.'.$name.'.method_name');
$user = config('b2b_wsdl.credentials.user');
View index.vue
<template>
<section>
<div class="custom-sel-outer">
<div class="custom-sel">
<select v-model="selectedClient" @change="SelectedCustomerId($event)">
<option value="none">Select Customer</option>
<option v-for="(customer, index) in customers" v-bind:value="{ id: customer.KUNNR, name: customer.COLONIA}">{{customer.COLONIA}}</option>
</select>
</div>
</div>
View output.xml
<?xml version="1.0" encoding="UTF-8"?>
<user_info>
<CANAL>10</CANAL>
<CLASE_DOC>ZPSE</CLASE_DOC>
<DEST_MCIA>0000000003</DEST_MCIA>
<ID_DEST_MCIA>BU</ID_DEST_MCIA>
<ID_RESP_PAGO>PY</ID_RESP_PAGO>
<ID_SOL>PE</ID_SOL>
<ORG_VTAS>VS01</ORG_VTAS>
<PEDIDO_ECOMMERCE>PEDIDO 1</PEDIDO_ECOMMERCE>
View workflow.md

Work Flow

Notes

  • Always keep your feature or bug branch synced with remote dev branch.
  • Whenever you start working on a new feature or bug. Please create a separate branch for your work DO NOT work on dev or master branch i.e. git checkout -b feature-name
  • Push only when the work is done , DO NOT PUSH frequently.
  • Please write decent commit messages.
@jagroop
jagroop / computed_properties.html
Created Jul 5, 2019
modify dynamic data with computed properties
View computed_properties.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js"></script>
</head>
<body>
View soap.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pixibox_soap {
const REQUEST_URL = 'http://example.com/DjamWebserv.asmx';
const COUPON_LINK = 'http://example.com/PixiboxMasterPrint.aspx';
const SUCCESS_RESPONSE_VALUES = [1, 2, 3];
View index.blade.php
@extends('layouts.app')
@section('content')
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<div class="container"><li class="breadcrumb-item active text-primary" aria-current="page">Shop</li></div>
</ol>
</nav>
<section class="shop-section text-center py-5">
<div class="head-box text-center mb-5 col-md-12">
View git.md

Git first time setup on PC ( only if its not already done )

  1. Install GIT

  2. Configure

git config --global user.name "Your name"
git config --global user.email "youemailaddress@example.com"
View groupon.txt
Array
(
[0] => Array
(
[id] => subway-716524034
[uuid] => 67f0339a-740e-4c1f-a74a-417f3bd25a0e
[dealUrl] => http://tracking.groupon.com/r?tsToken=US_AFF_0_207698_212556_0&url=https://www.groupon.com/deals/subway-716524034?z=skip&utm_medium=afl&utm_campaign=207698&mediaId=212556&utm_source=GPN
[title] => 25% Cash Back at Subway - Broad Street
[announcementTitle] => 25% Cash Back at Subway - Broad Street
[shortAnnouncementTitle] => 25% Cash Back at Subway
View Notification.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Notification {
/**
* Suppoted devices to send push Notifications
* IOS
* ANDROID
*/
You can’t perform that action at this time.