Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ashok Bakthavathsalam kgashok

🎯
Focusing
Block or report user

Report or block kgashok

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
@kgashok
kgashok / mutableTuple.py
Last active Jun 3, 2019
"Tuples are immutable, but their mutable constituents, if any, are mutable!"
View mutableTuple.py
tup1 = (1, 2, [3, 4, 5])
print(tup1)
print("Tuples are immutable, but their mutable constituents, if any, are mutable!")
tup1[2][2] = 'x'
print(tup1)
# (1, 2, [3, 4, 'x'])
View hidden decision trees (HDT)
################################################################################################################################
# Author: Naveenkumar Ramaraju #
# Hidden Decision Trees #
# Based on article: http://www.datasciencecentral.com/profiles/blogs/state-of-the-art-machine-learning-automation-with-hdt #
# Date: Feb-18-2017 #
# File version - 1 #
# pyhton - version: 3.6 #
#########################################################################################################################
@kgashok
kgashok / bookmarkletCD.md
Last active Nov 27, 2018
bookmarkletCreation.md
View bookmarkletCD.md

Bookmarklet for Custom Starting Points

  1. Create a duplicate bookmark by copy-pasteing an existing bookmark on your bookmark bar. The newly created bookmark will serve as a placeholder for putting in some bookmarklet JavaScript code.
    • Edit the bookmark and change the Name to CustomCD or whatever you might prefer to call it. You may choose to skip this step and edit the name when you update the URL in step 4 below.
  2. Select the below Javascript code by starting your cursor from before the javacript keyword all the way to the () at the very end. Copy the selection into your Clipboard by using Ctrl-C.
  3. Right-click on the CustomCD bookmark from Step 2 and choose "Edit".
  4. Paste the JS code (use Ctrl-V) directly into the dialog box referred to as "URL"
  5. If you haven't change the "Name" of the bookmark, edit that before you Save the bookmark.
@kgashok
kgashok / enco.html
Created Aug 29, 2018
ENCO Literary Challenge
View enco.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<title>ENCO Literary Challenge</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
View ENCO Literary Challenge.md
<title>ENCO Literary Challenge</title>
@kgashok
kgashok / replace.html
Last active Jun 4, 2018
replaceString
View replace.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>replaceRefactorSaga</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
@kgashok
kgashok / importantTopics.html
Created Apr 6, 2018
importantTopics-kgashok
View importantTopics.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>importantTopics-kgashok</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
View importantTopics-kgashok.md
<title>importantTopics-kgashok</title>
@kgashok
kgashok / recursive.html
Last active Feb 27, 2018
recursiveTutorial.md
View recursive.html
<h2 id="table-of-contents">Table of Contents</h2>
<p><div class="toc">
<ul>
<li><ul>
<li><a href="#table-of-contents">Table of Contents</a><ul>
<li><a href="#why-recursion-pros-and-cons">Why Recursion? - Pros and Cons</a><ul>
<li><a href="#quiz-1">Quiz 1</a><ul>
<li><a href="#httpjmphalfofreckg">http://j.mp/halfOfRecKG</a></li>
</ul>
@kgashok
kgashok / cron.md
Created Dec 17, 2017 — forked from evancz/cron.md
Cron job to remind myself to stretch
View cron.md

Type crontab -l to see your cron jobs. Type crontab -e to edit them. You have to use Vim apparently.

Add a line like this:

0,30	*	*	*	*	/Users/YOURNAME/Documents/scripts/stretch.sh

That is on every 0th and 30th minute of the hour. Make sure all the separators in there are tabs!

You can’t perform that action at this time.