Skip to content

Instantly share code, notes, and snippets.

View FuentesData1.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Oct 19, 2021
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Tuesday, October 19, 2021, 12:24:36 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.1.1.0]: 0Harmony(2.1.1), HarmonyMod(1.1.1)
BetterLoading(me.samboycoding.betterloading)[mv:3.2.0.1]: 0Harmony(av:2.1.1,fv:2.1.0), BetterLoading(2.3.0)
Core(Ludeon.RimWorld): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
XML Extensions(imranfish.xmlextensions): XmlExtensions(av:1.3.0,fv:1.6.2)
HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.1.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:9.0.1)
Mod Manager(Fluffy.ModManager)[mv:3.8.1038]: 0ColourPicker(av:4.0.0,fv:4.4.1086), FluffyUI(av:4.0.0,fv:4.4.1086), ModManager(av:4.0.0,fv:4.4.1086), SemanticVersioning(2.0.0), YamlDotNet(av:11.0.0,fv:11.2.1)
View data.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View openpanzer-save.json
{"scenario":{"name":"Malta","maxTurns":13,"date":"1941-05-25T21:00:00.000Z","atmosferic":0,"latitude":0,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{"3":[{"row":0,"col":0,"unit":{"eqid":214,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":13,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":0,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"3","id":1},{"row":0,"col":0,"unit":{"eqid":214,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":0,"flag":13,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":0,"entrenchment":0,"entre
@shassaan
shassaan / Code.cpp
Created Oct 19, 2021
Langrange Interpolation Implementation
View Code.cpp
#include<iostream>
using namespace std;
double* getL(double** dataValues,int nPoints,double pointOfInterest) {
double den = 1, num = 1;
double *L = new double[nPoints];
for (int i = 0; i < nPoints; i++)
{
for (int j = 0; j < nPoints; j++)
{
if (j != i)
View anysql2.js
const Database = require('better-sqlite3');
const db = new Database('.data/tmp2.sqlite3');
const create = async () => {
db.prepare(`CREATE TABLE IF NOT EXISTS service (
id INTEGER PRIMARY KEY AUTOINCREMENT,
service TEXT NOT NULL
);`).run();
db.prepare(`CREATE TABLE IF NOT EXISTS any (
txt TEXT NOT NULL,
@iluzdaf
iluzdaf / SimulateTimeWithObservables.cs
Created Oct 19, 2021
Simulate time with observables
View SimulateTimeWithObservables.cs
[Test]
public void RequestMatchSuccess()
{
var testScheduler = new PeriodicTestScheduler();
  Scheduler.DefaultSchedulers.TimeBasedOperations = testScheduler;
  var apiService = Substitute.For<IApiService>();
  var stateEvents = Substitute.For<IStateEvents>();
  var disposables = new CompositeDisposable();
 
  var ticket = new Ticket
@sameerfa
sameerfa / serviceWorker.js
Created Oct 19, 2021
Service Worker to convert react app into pwa
View serviceWorker.js
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a page, after all the
// existing tabs open on the page have been closed, since previously cached
// resources are updated in the background.
// To learn more about the benefits of this model and instructions on how to