Skip to content

Instantly share code, notes, and snippets.

View headfire94's full-sized avatar

Vodopyanov Egor headfire94

View GitHub Profile

Keybase proof

I hereby claim:

  • I am headfire94 on github.

  • I am headfire (https://keybase.io/headfire) on keybase.

  • I have a public key ASBOqSLmjNWgQD3_FEfp4eWhvxVb993fC6t75SCzHq42ZQo

@headfire94
headfire94 / exxample1.txt
Created December 10, 2016 12:07
Сумма основной и побочной диагонали матрицы
var matrixExample = [
[ 1, 2, 3, 4 ],
[ 4, 5, 6, 5 ],
[ 7, 8, 9, 7 ],
[ 7, 8, 9, 7 ]
];
function sumUpDiagonals(matrix) {
return matrix.reduce(function(prev,current,index,arr) {
return prev + current[index] + current[arr.length-1-index]
@headfire94
headfire94 / todo.md
Created October 4, 2016 01:39 — forked from carlsednaoui/todo.md
Sample to-do list for blog post

To do

  • Post to Hacker News
  • Share HN post on Twitter

Next

  • Raise $1MM
  • Retire