Skip to content

Instantly share code, notes, and snippets.

View cTxplorer's full-sized avatar
👋
Oh, hey there!

Pratik Gadhiya cTxplorer

👋
Oh, hey there!
View GitHub Profile
@cTxplorer
cTxplorer / redirection-test.js
Created November 1, 2022 05:29
A simple script with a function that opens an URL in new tab
// open an url in new tab
function openNewTab(url = '') {
window.open(url, 'randomtabname');
};
@cTxplorer
cTxplorer / cloudSettings
Last active June 10, 2020 12:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-10T12:10:04.663Z","extensionVersion":"v3.4.3"}
@cTxplorer
cTxplorer / index.html
Last active October 18, 2018 09:41
comic - movie rec
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@cTxplorer
cTxplorer / index.html
Last active October 18, 2018 09:15
comic - movie recommendation using subtitles
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@cTxplorer
cTxplorer / ISSNAKE.CPP
Created May 29, 2017 04:20
Snackdown - Is it a snake
//contest link: https://www.codechef.com/SNCKPA17/problems/ISSNAKE
//Author: Pratik Gadhiya
#include<iostream>
using namespace std;
char arr[502][2]; // Original array
int tot; // total number of '#' in an array
int n;
bool traverse(int x, int y){
int vert = 0; // to check whether we have traversed vertically in that column
#include <stdio.h>
void main()
{
int n = 0, m = 0;
if ( n > 0 )
{
if ( m > 0 )
printf("True\n");
else
printf("False\n");
#include <stdio.h>
void main()
{
int n = 0, m = 0;
if ( n > 0 )
if ( m > 0 )
printf("True\n");
else
printf("False\n");
}
/*
This is logical code snippet. It's language independent.
*/
C = 100
for i = 1 to n do
    for j = 1 to n do
    {
        Temp = A[i][j] + C
        A[i][j] = A[j][i]
        A[j][i] = Temp - C