Skip to content

Instantly share code, notes, and snippets.

View openpanzer-save.json
{"scenario":{"name":"Madrid Offensive","maxTurns":20,"date":"1938-12-24T23:00:00.000Z","atmosferic":0,"latitude":1,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{"3":[],"5":[],"7":[{"row":17,"col":4,"unit":{"eqid":288,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":26,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":5,"fuel":0,"hasAnimation":false,"hits":0,"experience":200,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"7","id":1}],"9":[{"row":17,"col":4,"unit":{"eqid":290,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":26,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":5,"fuel":0,"hasAnimation":false,"hits":0,"ex
View iot-tfk-001
__
14/10/2021 08:48:57#___
{ 'timestamp': '14/10/2021 08:59:22', 'state': '
{ 'timestamp': '14/10/2021 09:03:34', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 10:03:02', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 11:02:31', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 12:02:01', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 13:01:31', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 14:01:00', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
@openpanzer
openpanzer / openpanzer-save.json
Last active Oct 23, 2021
Breakout though Mandalay-4
View openpanzer-save.json
{"scenario":{"name":"Breakout though Mandalay","maxTurns":34,"date":"1942-05-04T22:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":2,"dayTurn":0,"reinforcements":{"4":[{"row":8,"col":2,"unit":{"eqid":247,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":23,"destroyed":false,"transport":null,"carrier":0,"moveLeft":18,"ammo":4,"fuel":0,"hasAnimation":false,"hits":0,"experience":389,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":4,"id":1},{"row":4,"col":2,"unit":{"eqid":733,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":23,"destroyed":false,"transport":null,"carrier":0,"moveLeft":15,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":321,
View JS_OOP_example1.js
// Example 1
const obj = {
color: "blue",
amount: 100,
};
// Check the type of the object literal 'obj'
console.log(typeof obj); // 'object'
// Verify that 'obj' has the properties we expect it to have
@taghassan54
taghassan54 / gist:374be3f3ec77e6182bcfa2099879575c
Created Oct 23, 2021 — forked from isimmons/gist:8202227
Truncate tables with foreign key constraints in a Laravel seed file.
View gist:374be3f3ec77e6182bcfa2099879575c

For the scenario, imagine posts has a foreign key user_id referencing users.id

public function up()
{
	Schema::create('posts', function(Blueprint $table) {
		$table->increments('id');
		$table->string('title');
		$table->text('body');
@isimmons
isimmons / gist:8202227
Last active Oct 23, 2021
Truncate tables with foreign key constraints in a Laravel seed file.
View gist:8202227

For the scenario, imagine posts has a foreign key user_id referencing users.id

public function up()
{
	Schema::create('posts', function(Blueprint $table) {
		$table->increments('id');
		$table->string('title');
		$table->text('body');
View index.html
<h1>👋 Hello World!</h1>
View test_linear_regression.py
@pytest.mark.parametrize("input_array, list_with_predictions",
[
(np.array([1, 2, 3, 4]), [6.17, 6.71, 7.25, 7.79]),
(np.array([5, 10, 15, 20]), [8.33, 11.03, 13.73, 16.43]),
(np.array([12, 22, 23, 24]), [12.11, 17.51, 18.05, 18.59]),
])
def test_make_prediction_on_unseen_data(input_array, list_with_predictions, regression):
predicted_array = regression.make_prediction_on_unseen_data(input_array)
predicted_list = []
for a in range(len(predicted_array)):
View gist:042067b350d4f8f8ec336aaa111e71d9
Temperature: 71.1
Current problems at Sat Oct 23 17:40:02 EDT 2021
77965 2021-10-22 07:28:44 AVG PROBLEM NACK micc Bright has failing health checks
==========
Problem history since 2021-10-22
77995 2021-10-22 23:28:32 INFO OK NACK Zabbix server Host information was changed on Zabbix server
77993 2021-10-22 22:18:33 INFO OK NACK Zabbix server Zabbix server has just been restarted
View the fastest love song (noob x tbc)
7103082080,2|0|62,1|2|580,0|0|1098,2|1|1357,0|1|1617,2|2|1876,1|0|2135,0|2|2394,2|0|2653,1|2|2912,0|0|3172,2|2|3690,0|1|4208,2|0|5050,2|1|5114,2|2|5180,0|2|5245,0|0|5504,2|1|5763,0|2|6023,1|0|6282,1|2|6800,2|0|7319,0|2|7837,1|0|8096,1|2|8355,2|0|8874,0|0|9133,0|2|9392,2|2|9651,1|0|9910,0|2|10169,2|1|10429,0|0|10947,1|2|11465,2|0|11984,0|0|12243,0|1|12371,0|2|12502,1|0|13280,1|2|13539,2|0|14057,0|1|14576,2|2|15353,1|0|15612,0|2|16390,0|1|16518,0|0|16649,2|0|16908,0|1|17167,2|1|17427,0|2|17686,1|0|17945,1|2|18204,2|0|18463,0|1|18982,2|2|19500,1|0|19759,0|2|20277,2|1|20796,0|0|21637,0|1|21767,0|2|21897,2|1|22092,0|0|22351,0|2|22610,2|2|22869,1|0|23388,0|2|23906,2|1|24424,0|1|24684,2|0|24943,1|2|25461,0|0|25720,2|1|25979,0|1|26239,2|2|26498,0|2|26757,1|0|27016,2|2|27794,0|1|28053,2|0|28312,1|2|28571,0|0|29089,2|1|29608,0|2|30126,1|0|30645,2|2|30964,1|2|31097,0|2|31227,2|0|31552,2|2|31941,0|1|32200,2|0|32849,1|2|33623,1|1|33755,1|0|33926,0|1|37061,0|0|37113,2|1|37274,2|2|37327,0|2|37488,0|1|37542,2|0|37702,2|1|377