Skip to content

Instantly share code, notes, and snippets.

View ckarthickit2's full-sized avatar

Karthick Chinnathambi ckarthickit2

View GitHub Profile
const scrapeData = () => {
const sections = document.querySelectorAll("#screener-table > table");
const headingElements = sections[0].querySelectorAll("th");
const scrapedData = Array.from(headingElements).map(elm => {
const selector = elm.getAttribute("id") === "name" ? "data-col" : elm.getAttribute("id") + "-col";
const rowElements = sections[0].querySelectorAll('tbody')[0].querySelectorAll("." + selector + " .ellipsis .desktop--only")
return {
column: elm.querySelector(".data-cell .desktop--only") ? elm.querySelector(".data-cell .desktop--only").textContent : "#",
@ckarthickit2
ckarthickit2 / themes.md
Last active March 11, 2021 18:36
AndroidTheming

Theming

Declare an Attribute that could be part of any Styleable

<attr format="enum" name="fontName">
	<enum name="gotham_ssm_bold" value="0"/>
	<enum name="gotham_ssm_light" value="1"/>
	<enum name="gotham_ssm_medium" value="2"/>
	<enum name="gotham_ssm_book" value="3"/>
@ckarthickit2
ckarthickit2 / kotlin_proguard_experiments.md
Last active June 11, 2020 10:00
Kotlin Proguard Experiment

References

  • Gradle Task to display build environment Tree

    ./gradlew buildEnvironment
  • [Kotlin + Proguard - Article1][stckovflw_kotlin_proguard1]

  • [Jetbrains Kotlin Proguard - Issue1][jetbrains_kotlin_proguard1]

@ckarthickit2
ckarthickit2 / android_command_line_install.sh
Created April 13, 2020 08:01
Install android in Command Line for Build machines
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_NDK_HOME="/usr/local/share/android-ndk"
brew cask install android-sdk
brew cask install android-ndk
@ckarthickit2
ckarthickit2 / android_instructions_23.md
Created April 13, 2020 07:45 — forked from agrcrobles/android_instructions_29.md
Setup Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

@ckarthickit2
ckarthickit2 / android_instructions.md
Created April 13, 2020 07:43 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@ckarthickit2
ckarthickit2 / PULL_REQUEST_TEMPLATE
Created April 9, 2020 01:19 — forked from riggaroo/PULL_REQUEST_TEMPLATE
Pull request template format. Add this file to your .github folder
<!--- Provide a general summary of your changes in the Title above -->
<!--- If there is no changelog entry, label this PR as trivial to bypass the Danger warning -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
@ckarthickit2
ckarthickit2 / vimeo-download.py
Created March 3, 2020 03:41 — forked from alexeygrigorev/vimeo-download.py
Downloading segmented video from vimeo
import requests
import base64
from tqdm import tqdm
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1'
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1]
resp = requests.get(master_json_url)
content = resp.json()