Skip to content

Instantly share code, notes, and snippets.

👨‍💻
At Office

Jagroop Singh jagroop

👨‍💻
At Office
Block or report user

Report or block jagroop

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.php
<!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">
View FileService.php
<?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;
View register.blade.php
@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">
View test.php
<?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);
?>
View tz.php
<?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')) {
View vuejs.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
</head>
<body>
View token.php
<?php
include '../vendor/autoload.php';
include 'config.php';
include 'randos.php';
log('hdgfjhdgshfjgdhfhds');
use Twilio\Jwt\ClientToken;
// choose a random username for the connecting user
$identity = randomUsername();
View dropdown.html
<el-dropdown @command="deleteProject" trigger="click">
<span class="el-dropdown-link">
<i class="el-icon-more"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="project.id">Delete</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
View script.js
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
@jagroop
jagroop / mailjet_api.php
Last active Jul 30, 2018
Mail Jet sample code
View mailjet_api.php
<?php
header('Content-Type: application/json');
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.mailjet.com/v3/REST/contactslist/1810371/managemanycontacts/100720361");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_USERPWD, "d27a3b3fef7b3050856084526c43fab3" . ":" . "2d0be36e46e8049c9ec5325869e4452e");
You can’t perform that action at this time.