Skip to content

Instantly share code, notes, and snippets.

View jagroop's full-sized avatar
👨‍💻
At Office

Jagroop Singh jagroop

👨‍💻
At Office
View GitHub Profile
@jagroop
jagroop / please.json
Created October 8, 2018 11:05
please.json
{
"status": 1,
"message": "success",
"data": [
{
"id": 506,
"recording_play_id": "636745433489244416.m4a",
"recording_duration": "00:39:09",
"recording_id": "34343",
"recording_name": "jeff bezos",
@jagroop
jagroop / test.php
Last active October 27, 2018 04:51
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout -->
<style>
table {
table-layout: fixed;
width: 100%;
border-collapse: collapse;
}
th {
border: 1px solid blue;
overflow: hidden;
<?php
$input = "I'm am living on india";
$removeWords = [
'I',
'on',
'a',
'without doubt'
];
<?php
use Illuminate\Database\Seeder;
class RemoveWordsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script>
</head>
<body>
<div id="app">
<?php
namespace App\Services;
use App\ProjectFile;
use Illuminate\Http\File;
use Illuminate\Support\Facades\Storage;
use Symfony\Component\HttpFoundation\Request;
use App\Contracts\IFileService;
use App\Services\ProofService;
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Register') }}</div>
<div class="card-body">
<?php
include 'Query.Inc.php';
$Obj = new Query($DBName);
error_reporting(0);
$SiteURL = "https://".$_SERVER['HTTP_HOST']."/";
$info = $_POST['info'];
$links = $_POST['links'];
$sql = "SELECT name, city, buyurl, imageurl FROM hotelDeal_landingPage LIMIT 0,5";
$result = mysql_query($sql);
?>
@jagroop
jagroop / tz.php
Created August 8, 2018 06:41
Logger
<?php
function wLog($tag = 'Tag', $data = [])
{
$logFile = null;
$timezone = date_default_timezone_get();
date_default_timezone_set('Asia/Kolkata');
if(!file_exists(WWW_ROOT . DS . 'ErLogs' . DS . 'logs.txt')) {