Skip to content

Instantly share code, notes, and snippets.

View Horopter's full-sized avatar

Santosh Desai Horopter

  • Microsoft
  • India
View GitHub Profile
@Horopter
Horopter / youtube-comment-collector.js
Created March 15, 2024 00:33
Youtube Comments JS Files
// Global constants for XPaths
const COMMON_XPATH = '/html/body/c-wiz/div/div[2]/c-wiz/c-wiz/div/div';
const END_MESSAGE_XPATH = `${COMMON_XPATH}[2]/div[1]/div`;
const COMMENT_XPATH_SUFFIX = 'div/div/div[2]/div[1]/div[1]';
const LINK_XPATH_SUFFIX = 'div/div/div[2]/div[1]/div[2]/a';
// Array to store collected comments and links
let collectedData = [];
function autoScroll(counter) {
@Horopter
Horopter / Hemalambi.json
Created April 26, 2017 12:47
Hemalambi Naama Samvatsara Panchaanga
[
{
"Date": 29,
"Month": 3,
"Year": 2017,
"Shalivahana_Gatha_Shake": 1939,
"Siddhantha": "Surya",
"Samvatsara": "Hemalambi",
"Aayana": "Uttarayana",
"Ruthu": "Vasantha",
@Horopter
Horopter / Django_CheatSheet.txt
Last active May 31, 2019 06:31
Django CheatSheet
--------------------- SETUP -----------------------
1. Download Python 3.5
2. Update Path variables on Windows Path.
3. Install Cmder and run as Admin
4. Install Pycharm
5. $easy_install django
6. $easy_install virtualenv
7. django-admin startproject Santosh // Santosh is project name
8. Never edit manage.py, NEVER!
@Horopter
Horopter / c#2010ps-activation.md
Last active December 27, 2015 12:51
Steps to activate command prompt access to VS-C#- 2010 in powershell

New-Alias csc "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" #in powershell
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools #in powershell
VSVARS32 #in powershell
csc /t:exe /out:app.exe app.cs #in powershell

@Horopter
Horopter / fileMerger.sh
Created October 22, 2015 14:20
Merge several files into one for documentation purposes
#!/bin/sh -u
zenity --info --ok-label="Start" --width="500" --height="300" --title="Horopter Inc." --text "`basename $0` is loaded. Click start to continue."
current=`pwd`
zenity --question --width="500" --height="300" --title="Welcome to Horopter fileconverter." --text "You need to put all the required files together in a directory, did you do that?"
if [ $? -eq 0 ]
then
zenity --info --width="500" --height="300" --title="Horopter Inc." --text "Example: If the files are in a directory called 'apple',\n /folder1/folder2/apple is location into the directory apple."
path=$(zenity --entry --width="500" --height="300" --title="Directory selection" --text "Enter the location into the directory as absolute path, . for current directory: ")
if [ -n "$path" ]
then
@Horopter
Horopter / fileConverter.sh
Created October 22, 2015 14:19
Script to convert any file to text file as long as it has been coded in utf-8 format
#!/bin/sh -u
zenity --info --ok-label="START" --width="500" --height="300" --title="Horopter Inc." --text "`basename $0` is loaded. Click START to continue."
current=`pwd`
zenity --question --width="500" --height="300" --title="Welcome to Horopter fileconverter." --text "You need to put all the required files together in a directory, did you do that?"
if [ $? -eq 0 ]
then
zenity --info --width="500" --height="300" --title="Horopter Inc." --text "Example: If the files are in a directory called 'apple',\n /folder1/folder2/apple is location into the directory apple."
path=$(zenity --entry --width="500" --height="300" --title="Directory selection" --text "Enter the location into the directory as absolute path, . for current directory: ")
if [ -n "$path" ]
then