Skip to content

Instantly share code, notes, and snippets.

View kk-r's full-sized avatar
:bowtie:
Focusing

Krishnakumar kk-r

:bowtie:
Focusing
  • Bengaluru
View GitHub Profile
This file has been truncated, but you can view the full file.
[
{"ID":"1","Account ID":"83","Event":"Button Clicked","Timestamp":"March 15, 2022, 12:18 AM","Page URL":"","Button Label":"Invite"},
{"ID":"2","Account ID":"83","Event":"Page Viewed","Timestamp":"March 15, 2022, 12:20 AM","Page URL":"www.piespace.example/invite","Button Label":""},
{"ID":"3","Account ID":"83","Event":"Page Viewed","Timestamp":"March 15, 2022, 12:20 AM","Page URL":"www.piespace.example/home","Button Label":""},
{"ID":"4","Account ID":"83","Event":"Page Viewed","Timestamp":"March 15, 2022, 12:25 AM","Page URL":"www.piespace.example/home","Button Label":""},
{"ID":"5","Account ID":"83","Event":"Page Viewed","Timestamp":"March 15, 2022, 12:26 AM","Page URL":"www.piespace.example/invite","Button Label":""},
{"ID":"6","Account ID":"83","Event":"Page Viewed","Timestamp":"March 15, 2022, 12:26 AM","Page URL":"www.piespace.example/pies","Button Label":""},
This file has been truncated, but you can view the full file.
[
{"Canceled At":"","Longitude":"81.29234000Β° E","Email":"[email protected]","Country":"IN","Created At":"September 15, 2020, 4:11 PM","Source":"Facebook","First Name":"Macy","Trial Ends At":"September 30, 2020, 12:00 PM","Active Subscription":"true","ID":"1","Trial Converted":"true","Plan":"Basic","Latitude":"24.53256000Β° N","Last Name":"Kub","Seats":"32","Legacy Plan":"false"},
{"Canceled At":"October 2, 2020, 12:00 AM","Longitude":"72.37620000Β° W","Email":"[email protected]","Country":"US","Created At":"September 18, 2020, 8:36 AM","Source":"","First Name":"Kim","Trial Ends At":"October 2, 2020, 12:00 PM","Active Subscription":"false","ID":"2","Trial Converted":"false","Plan":"Basic","Latitude":"41.29177000Β° N","Last Name":"Cormier","Seats":"1","Legacy Plan":"false"},
@kk-r
kk-r / graph_traversal_template.py
Created August 11, 2021 12:33 β€” forked from RuolinZheng08/graph_traversal_template.py
[Algo] Graph Traversal Template
# Iterative
def dfs(graph, start):
visited, stack = set(), [start]
while stack:
node = stack.pop()
visited.add(node)
for neighbor in graph[node]:
if not neighbor in visited:
stack.append(neighbor)
return visited
@kk-r
kk-r / tree_traversal_template.py
Created August 11, 2021 12:33 β€” forked from RuolinZheng08/tree_traversal_template.py
[Algo] Tree Traversal Template
# DFS
def preorder(self, root):
if not root:
return []
ret = []
stack = [root]
while stack:
node = stack.pop()
ret.append(node.val)
if node.right:
@kk-r
kk-r / backtracking_template.py
Created August 11, 2021 12:33 β€” forked from RuolinZheng08/backtracking_template.py
[Algo] Backtracking Template & N-Queens Solution
def is_valid_state(state):
# check if it is a valid solution
return True
def get_candidates(state):
return []
def search(state, solutions):
if is_valid_state(state):
solutions.append(state.copy())
@kk-r
kk-r / pre-commit
Last active May 29, 2018 07:50
Git pre-commit Hook for PHPCS standards ( copy and paste inside your project .git/hooks/pre-commit file). Please make sure pre-commit file should have permission to execute. And simply add this directory to your PATH in your ~/.bash_profile (or ~/.bashrc) like this: ` export PATH=~/.composer/vendor/bin:$PATH `
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"`
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php`
# Determine if a file list is passed
if [ "$#" -eq 1 ]
then
oIFS=$IFS
IFS='
'
SFILES="$1"