Setup the network
sudo wifi-menu
Update the Pacman database
pacman -Syyy
#include <iostream> | |
int sqr(int n) { | |
return n * n; | |
} | |
int main() { | |
int r{}; | |
std::cin >> r; | |
int x{}; |
'use strict' | |
const readline = require('readline') | |
const input = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}) | |
input.setPrompt('> ') |
# User Settings | |
## Set up Node Version Manager | |
source /usr/share/nvm/init-nvm.sh | |
## Env | |
export WALLPAPERS_HOME="/home/avdotion/Wallpapers/404339/" | |
alias settings="subl3 ~/.oh-my-zsh/oh-my-zsh.sh" | |
alias bk="cd ../" | |
// This is the model | |
const model = tf.sequential(); | |
// Create hidden layer | |
const hiddens = tf.layers.dense({ | |
units: 4, | |
inputShape: [2], | |
activation: 'sigmoid' | |
}); |
const GRID_SCALE = 20; | |
const GRID_CELLS = 20; | |
const FPS = 15; | |
let snake; | |
let food; | |
function setup() { | |
createCanvas(GRID_SCALE * GRID_CELLS, GRID_SCALE * GRID_CELLS); | |
frameRate(FPS); |
from bisect import insort | |
class SortedDict(dict): | |
def __init__(self): | |
super(dict, self).__init__() | |
self.sorted_keys = list() | |
def __setitem__(self, key, value): | |
super(SortedDict, self).__setitem__(key, value) |
/** | |
* Stack implementation | |
* https://www.wikiwand.com/en/Stack_(abstract_data_type) | |
*/ | |
export class Stack { | |
/** | |
* array implementation | |
* without shift (trying to be O(1) for adding and deleting) | |
* @param {Number} [maxsize=-1] [maxsize may be equal to -1 for dynamic] | |
*/ |
class Polynom: | |
def __init__(self, s): | |
self.coefs = self.reborn(s) | |
def reborn(self, source): | |
result = list() | |
coefs = dict() | |
source = source.split('+') |
const maxRecurtionDepth = 15; | |
let slider, angle; | |
const len = 200; | |
function setup() { | |
createCanvas(600, 600); | |
slider = createSlider(0, PI, PI/4, PI/16); | |
} |