Skip to content

Instantly share code, notes, and snippets.

View varun-raj's full-sized avatar

Varun Raj Manoharan varun-raj

View GitHub Profile
@varun-raj
varun-raj / pullJSON.js
Last active October 31, 2022 16:19
Google App Script To Fetch Data From JSON Webservice and Write them to google spreadsheet.
function pullJSON() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheets = ss.getSheets();
var sheet = ss.getActiveSheet();
var url="http://example.com/feeds?type=json"; // Paste your JSON URL here
var response = UrlFetchApp.fetch(url); // get feed
var dataAll = JSON.parse(response.getContentText()); //
@varun-raj
varun-raj / TEST
Created June 16, 2021 10:16
TEST
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="telephone=no" name="format-detection" />
<title></title>
<style data-premailer="ignore">
@media screen and (max-width: 600px) {
@varun-raj
varun-raj / .block
Last active July 9, 2020 04:41
Interactive Gantt Chart
border: no
@varun-raj
varun-raj / config_object.js
Last active November 17, 2019 07:54
Gantt Chart Demo
var config = {
data: data, // Your actuall data
element: "#Chart", // The element for rendering the chart
box_padding: 10, // Padding for the blocks
metrics: {type: "sprint", year: 2017, cycles: cycles}, // Type of gantt
onClick: function(data) {
console.log(data); // Onclick of each node
},
onEmptyButtonClick: function() {
console.log("Empty Clicked");
var data = [
{
id: 1,
title: "Make significant improvements in the UI/UX Design Process Make significant improvements in the UI/UX Design Process",
start_date: "08/08/2016",
end_date: "03/09/2017",
value: 67,
term: "Short Term",
completion_percentage: 29,
color: "#770051",
This file has been truncated, but you can view the full file.
!function(e){var t,i;!function(){function e(e,t){if(!t)return e;if(0===e.indexOf(".")){var i=t.split("/"),n=e.split("/"),a=i.length-1,o=n.length,r=0,s=0;e:for(var l=0;o>l;l++)switch(n[l]){case"..":if(!(a>r))break e;r++,s++;break;case".":s++;break;default:break e}return i.length=a-r,n=n.slice(s),i.concat(n).join("/")}return e}function n(t){function i(i,r){if("string"==typeof i){var s=n[i];return s||(s=o(e(i,t)),n[i]=s),s}i instanceof Array&&(r=r||function(){},r.apply(this,a(i,r,t)))}var n={};return i}function a(i,n,a){for(var s=[],l=r[a],h=0,m=Math.min(i.length,n.length);m>h;h++){var V,U=e(i[h],a);switch(U){case"require":V=l&&l.require||t;break;case"exports":V=l.exports;break;case"module":V=l;break;default:V=o(U)}s.push(V)}return s}function o(e){var t=r[e];if(!t)throw new Error("No "+e);if(!t.defined){var i=t.factory,n=i.apply(this,a(t.deps||[],i,e));"undefined"!=typeof n&&(t.exports=n),t.defined=1}return t.exports}var r={};i=function(e,t,i){r[e]={id:e,deps:t,factory:i,defined:0,exports:{},require:n(e)}},t=n("
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
sudo usermod -aG docker deploy
sudo mkdir /opt/oracle
sudo chown -R $USER:$USER /opt/oracle
cd /opt/oracle
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-basiclite-linux.x64-18.3.0.0.0dbru.zip
sudo apt-get install unzip
sudo apt-get install libaio1
unzip instantclient-basiclite-linux.x64-18.3.0.0.0dbru.zip
@varun-raj
varun-raj / ExtendedSearchBarRenderer.cs
Created December 28, 2018 12:48 — forked from xleon/ExtendedSearchBarRenderer.cs
Xamarin.Forms renderer to hide the "Cancel" button of a SearchBar on iOS
using System;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Forms;
using UIKit;
using System.Diagnostics;
[assembly: ExportRenderer(typeof(SearchBar), typeof(Namespace.iOS.Renderers.ExtendedSearchBarRenderer))]
namespace Namespace.iOS.Renderers
{
@varun-raj
varun-raj / k.json
Last active October 16, 2017 09:32
{
"swagger": "2.0",
"info": {
"version": "0.2.0",
"title": "SSMS Worker API"
},
"host": "18.194.193.140:3001",
"paths": {
"/api/systemtoken": {
"post": {