Skip to content

Instantly share code, notes, and snippets.

View jngd's full-sized avatar

Juan jngd

View GitHub Profile
@jngd
jngd / hourglasssum.js
Created February 20, 2020 20:24
Hourglass sum solution
function hourglassSum(arr) {
let totalSum = 0;
for (let i = 2; i < arr.length; i++) {
for (let j = 2; j < arr.length; j++) {
let sum = arr[i][j]
+ arr[i][j-2]
+ arr[i][j-1]
+ arr[i-1][j-1]
+ arr[i-2][j]
@jngd
jngd / cloudSettings
Last active September 20, 2019 11:09
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-20T11:09:35.481Z","extensionVersion":"v3.4.2"}
@jngd
jngd / code-settings-sync
Created January 27, 2019 17:00
code-settings-sync
settings-sync
@jngd
jngd / gist:d436050371177b558efb
Created July 13, 2015 14:09
Kickstart simple file
#kickstart file for basic CentOS network installation
install
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp --device=eth0 --gateway=192.168.122.1 --hostname=centos7 --nameserver=192.168.122.1
# packages location