This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
#**************************************************************************# | |
# SubReddit_Importer.py # | |
# by # | |
# Debanjum Singh Solanky # | |
# # | |
# Copyright (C) 2016-2017 Debanjum Singh Solanky # | |
# # | |
# This program is free software: you can redistribute it and/or modify # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Initialise system | |
sudo apt-get update | |
# Retrieving local or external IP, Hostname | |
# if single argument | |
[ $# -eq 1 ] && ( | |
# and argument = server | |
[[ "$1" == "server" ]] && ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trackbar Thresholding & Morphological Operations | |
// Set lower, upper H,S,V Threshold Values such that ROI in white in each of the 6 cases. | |
// Perform Mophological Operation on Thresholded Image(Removes Noise) | |
// Hence Final Image Obtained With Given HSV Values, for given environmental conditions. | |
#include "stdafx.h" | |
#include "cv.h" | |
#include "highgui.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FINAL CODE FORMAT | |
This code was written for a Computer Vision Competition using OpenCV and Visual Studio C++ about 4 years back. | |
The purpose was to catch specific coloured balls rolling down a slope at the bottom of which are bot lay. | |
Our thresholding functions didn't generalise to new environments very well. | |
*/ | |
#include "stdafx.h" | |
#include <cv.h> | |
#include <highgui.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CA Game Of Life.cpp : Defines the entry point for the console application. | |
/* | |
Game Of Life | |
Conditions: | |
.Alive:3 Moore Neighbours OR 2 Moore Neighbours and Previously Alive | |
.Dead: If Not Alive | |
Kernel: | |
.3*3 Matrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#**************************************************************************# | |
# Dialog Seek.sh # | |
# by # | |
# Debanjum Singh Solanky # | |
# # | |
# Copyright (C) 2016 Debanjum Singh Solanky # | |
# # | |
# This program is free software: you can redistribute it and/or modify # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Initialising Variables [Enter You Use Name in place of USER] | |
quotesdir='/home/USER/.config/variety/pluginconfig/quotes/quotes.txt' | |
# New Quotes: Clean Earlier Quotes | |
[[ $# -eq 1 && $1 == 'New' ]] && ( `mv -f "$quotesdir" /tmp/quotes_old.txt` ) | |
# Restore Earlier Quotes | |
[[ $# -eq 1 && $1 == 'Restore' ]] && ( `mv -f /tmp/quotes_old.txt "$quotesdir"` ) | |
# Quote Help |