Skip to content

Instantly share code, notes, and snippets.

Avatar
🇮🇳
🧜 Merperson

Nikhil M niksmac

🇮🇳
🧜 Merperson
View GitHub Profile
View titleCase.js
function titleCase(str) {
let splitStr = str.toLowerCase().split(' ')
for (let i = 0; i < splitStr.length; i++) {
splitStr[i] =
splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1)
}
return splitStr
.join(' ')
.replace(/[\u0300-\u036f]/g, '')
.replace(/\s+/g, '')
View baseweb-custom-theme.js
'use strict'
// Refer https://baseweb.design/components/base-provider/#baseprovider-api
const primitives = {
primaryFontFamily: `'B612', sans-serif;`,
accent600: '#059669',
accent700: '#047857',
}
const overrides = {
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View convert-to-csv.py
import pandas as pd
import csv
import math
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('input_filename')
parser.add_argument('file_name')
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View gist:0e07a9b5b0426443113897ddd0dffaac
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
View launchscript_1.sh
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`