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">
<meta charset="UTF-8">
<script src=""></script>
<script src=""></script>
<div id="app">
View FileService.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
<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
include 'Query.Inc.php';
$Obj = new Query($DBName);
$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
function wLog($tag = 'Tag', $data = [])
$logFile = null;
$timezone = date_default_timezone_get();
if(!file_exists(WWW_ROOT . DS . 'ErLogs' . DS . 'logs.txt')) {
View vuejs.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src=""></script>
View token.php
include '../vendor/autoload.php';
include 'config.php';
include 'randos.php';
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>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="">Delete</el-dropdown-item>
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 / mailjet_api.php
Last active Jul 30, 2018
Mail Jet sample code
View mailjet_api.php
header('Content-Type: application/json');
// Generated by curl-to-PHP:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "");
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.