Skip to content

Instantly share code, notes, and snippets.

View prakashsellathurai's full-sized avatar
🦅
Focusing

Prakash Sellathurai prakashsellathurai

🦅
Focusing
View GitHub Profile
https://pcpartpicker.com/list/fxjPyg
PCPartPicker Part List: https://pcpartpicker.com/list/fxjPyg
CPU: AMD Ryzen 9 7900X 4.7 GHz 12-Core Processor ($398.98 @ Amazon)
CPU Cooler: Cooler Master MasterLiquid ML360L ARGB V2 62 CFM Liquid CPU Cooler ($113.62 @ Amazon)
Motherboard: MSI PRO B650-A WIFI ATX AM5 Motherboard ($204.99 @ MSI)
Memory: G.Skill Ripjaws S5 32 GB (2 x 16 GB) DDR5-6000 CL30 Memory ($99.90 @ Newegg)
Storage: Samsung 980 Pro 2 TB M.2-2280 PCIe 4.0 X4 NVME Solid State Drive ($199.00 @ Amazon)
@prakashsellathurai
prakashsellathurai / EXPORT.js
Last active September 1, 2018 16:44
BETTER WAY TO EXPORT THE CLOUD FUNCTIONS BY WRAPPING IT UNDER DIRECTORY IN HIERARCHIAL NAMING SCHEMA
const glob = require('glob')
function exportFunction () {
return glob.sync('{,!(node_modules)/**/}*.js', { cwd: __dirname }).forEach(file => {
const only = process.env.FUNCTION_NAME
const name = concoctFunctionName(file)
if (only === undefined || only === name) {
console.log(name + '' + 'file: ' + file)
}
})
}
function sumTheNaturalNumbers(...theArgs) {
return theArgs.reduce((previous, current) => {
return previous + current;
});
}
console.log(sumTheNaturalNumbers(1, 2, 3));
void FloydWarshall(int distance[maxVertices][maxVertices],int vertices)
{
int from,to,via;
for(from=0;from<vertices;from++)
{
for(to=0;to<vertices;to++)
{
for(via=0;via<vertices;via++)
{
distance[from][to] = min(distance[from][to],