Skip to content

Instantly share code, notes, and snippets.

View rameshpaudel's full-sized avatar

Ramesh Paudel rameshpaudel

  • Melbourne, Australia
View GitHub Profile
@rameshpaudel
rameshpaudel / insertPizza.php
Created August 20, 2020 04:30
Insert Pizza Code
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
Organization name: leexij@gmail.com
Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k
@rameshpaudel
rameshpaudel / retailer-balance-query-response.json
Created November 6, 2019 09:01
NTC -- Retailer Balance Response
{"soapenv:Envelope":{"soapenv:Body":{"ns:getDealerBalanceResponse":{"ns:return":{"ax224:balanceInfoRsp":{"ax226:balanceAmount":"1909","ax226:balanceShow":"19.09 (NPR)","ax226:measureId":"11301","ax226:respCode":"00","ax226:respDesc":"","@attributes":{"xsi:type":"ax226:BalanceInfoRsp"}},"ax224:responseHeader":{"ax224:errorCode":"00","ax224:errorMsg":"successful","ax224:finishDate":{"@value":"","@attributes":{"xsi:nil":"true"}},"@attributes":{"xsi:type":"ax224:ResponseHeader"}},"@attributes":{"xsi:type":"ax224:ResponseGetDealerBalance"}}}}}}
@rameshpaudel
rameshpaudel / error-booking-event-tickets.json
Created October 3, 2019 17:01
Error on booking in ug-events
{
"message": "json_decode() expects parameter 1 to be string, array given",
"exception": "ErrorException",
"file": "/var/www/staging.ugbazaar.com/app/Http/Controllers/App/V2/EventControllerV2.php",
"line": 30,
"trace": [
{
"function": "handleError",
"class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions",
"type": "->"

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server:

factory(App\User::class,5)->create();

factory(App\City::class,10)->create();

factory(App\Property::class,100)->create();

#Commands in git
git init
Initialize a new git repository in local
git add filename
Adds a file into the local repository
git commit -m 'Commit message goes here'
Add a commit message to the repository
<h1>CART</h1>
<form>
<input type="text" class='search' placeholder = "Search"> <input class='searchClick' type="submit" value='Go'> <br><br>
<div class='inside-form'>
<input type="checkbox" value="Bike">Bike<br>
<input type="checkbox" value="Car" >Car<br>
<input type="checkbox" value="Bicycle" >Bicycle<br>
<input type="checkbox" value="Aeroplane" >Aeroplane<br>
<input type="checkbox" value="Scooter" >Scooter<br>
<h1>CART</h1>
<form>
<input type="text" class='search' placeholder = "Search"> <input class='searchClick' type="submit" value='Go'> <br><br>
<div class='inside-form'>
<input type="checkbox" value="Bike">Bike<br>
<input type="checkbox" value="Car" >Car<br>
<input type="checkbox" value="Bicycle" >Bicycle<br>
<input type="checkbox" value="Aeroplane" >Aeroplane<br>
<input type="checkbox" value="Scooter" >Scooter<br>