This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Funkcja: Update() | |
// Działanie: update.. | |
////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
void Bohater :: Update() | |
{ | |
brain->Update(); | |
cycles++; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Procedure naucz(var _siec :Tsiec;var _uczacy :Tuczacy); | |
{uczenie sieci metoda wstecznej propagacji bledow, liczba warstw: min 3} | |
var | |
_out :Tout; _in :Tin; _delta :Tdelta; _blad :Tblad; | |
_i,_i2,_i3 :integer; waga_tmp :real; | |
begin | |
for _i2:=1 to _siec.liczba_n[1] do _out[1,_i2]:=_uczacy.we[_i2]; {warstwa we} | |
for _i:=1 to _siec.liczba_w-1 do _out[_i,_siec.liczba_n[_i]]:=1; {bias} | |
{mnozenie wejsc przez wagi dla kazdego neuronu} | |
for _i:=2 to _siec.liczba_w do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function planner_loop (roomName, opts = {}) { | |
let _this = {}; | |
_this.visual = new RoomVisual(roomName); | |
_this.anchor = getAnchor(roomName); | |
_this.terrain = new Room.Terrain(roomName); | |
if (!_this.anchor) return; | |
let s = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function planner_loop (roomName, opts = {}) { | |
let _this = {}; | |
_this.visual = new RoomVisual(roomName); | |
_this.anchor = getAnchor(roomName); | |
_this.terrain = new Room.Terrain(roomName); | |
if (!_this.anchor) return; | |
let s = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PLAIN_COST = 3; | |
const SWAMP_COST = 6; | |
const WALL_COST = 30 * PLAIN_COST; | |
const EXISTING_PATH_COST = PLAIN_COST - 2; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function objectLabel(gameObject) { | |
if (typeof gameObject !== 'object') { | |
return 'error'; | |
} | |
let pos = gameObject; | |
if (!(gameObject instanceof RoomPosition)) { | |
pos = _.get(gameObject, 'pos'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public object getTablesSchema(int a) | |
{ | |
using (SqlConnection conn = getConnection("")) | |
return getTablesSchema_impl(conn); | |
} | |
public object getTablesSchema_customDB(string db_name) | |
{ | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs'); | |
const util = require('util'); | |
async function load(){ | |
let url = 'https://somesite'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
int random_stack_var; | |
printf("stack %p\n", &random_stack_var); | |
puts(""); | |
const char* c_pointer = "Hello"; | |
printf("&c_pointer %p (size %u)\n", &c_pointer, sizeof(c_pointer)); | |
printf("c_pointer %p : %s\n", c_pointer, c_pointer); | |
puts(""); |