Skip to content

Instantly share code, notes, and snippets.

// replace all -1 with 0
for i in 0..input.len() {
for j in 0..input[i].len() {
if input[i][j] == -1 {
input[i][j] = 0;
}
}
}
// check if any greater than 9, set them to -1
// and call update on valid neighbours and diagonals
for i in 0..input.len() {
for j in 0..input[i].len() {
if input[i][j] > 9 {
input[i][j] = -1;
if i > 0 {
input[i - 1][j] = update(input[i - 1][j]);
}
// check if any greater than 9, set them to -1
// and increase neighboring and diagonal numbers
for i in 0..input.len() {
for j in 0..input[i].len() {
if input[i][j] > 9 {
input[i][j] = -1;
if i > 0 {
input[i - 1][j] += 1;
}
if i < input.len() - 1 {
asdasd
We can't make this file beautiful and searchable because it's too large.
6.889945268630981445e-02 -2.861346602439880371e-01 -3.925032168626785278e-02 -3.623076677322387695e-01 1.960779875516891479e-01 -3.475854694843292236e-01 -2.716838195919990540e-02 7.233723998069763184e-01 -6.847973912954330444e-02 3.357532024383544922e-01 -5.403805524110794067e-02 -1.776816993951797485e-01 1.282918453216552734e-01 5.336205288767814636e-02 1.645264923572540283e-01 -5.097864195704460144e-02 -1.420844942331314087e-01 3.146397769451141357e-01 -6.186333950608968735e-03 6.532677263021469116e-02 -9.640390425920486450e-02 1.565462164580821991e-02 8.701873570680618286e-02 -7.057786732912063599e-02 -2.249079942703247070e-01 4.932923614978790283e-01 -2.855118922889232635e-02 -3.776965737342834473e-01 -2.141559422016143799e-01 -2.595035135746002197e-01 7.454491406679153442e-02 -4.764346778392791748e-02 8.831843733787536621e-02 2.022788524627685547e-01 1.004968211054801941e-01 -5.296880006790161133e-01 -2.188143581151962280e-01 2.983406484127044678e-01 4.443191289901733398e-01 -1.773966312408447266e+00 -7
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
import tensorflow as tf
import sonnet as snt
# Helper libraries
import numpy as np
import os
import sys
from absl import flags
from absl import app
#include <iostream>
#include <SDL.h>
#include <bgfx/bgfx.h>
#include <bx/math.h>
struct PosColorVertex
{
float x;
#include <iostream>
#include <SDL.h>
#include <bgfx/bgfx.h>
#include <bx/math.h>
struct PosColorVertex
{
float x;