Instantly share code, notes, and snippets.

View 0001-Adapt-to-Ogre-1.10.patch
From 2e00266b3c071b939a9a0adb01cfc96f390d7a77 Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <Sammy.Pfeiffer@student.uts.edu.au>
Date: Thu, 13 Dec 2018 01:36:37 +1100
Subject: [PATCH] Adapt to Ogre 1.10
---
src/plant_flag_tool.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plant_flag_tool.cpp b/src/plant_flag_tool.cpp
View Changed Paths
x86_64-linux tests.nixos-functions.nixosTest-test
x86_64-linux tests.nixos-functions.nixos-test
x86_64-linux google-compute-engine-oslogin
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.flexbox-wrapper{
display: flex;
flex-direction: column;
align-items: center;
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
View playground.rs
trait TSociable{
fn say(&self);
fn instance() -> Box<dyn TSociable> {
if true { Hello::new() } else { GoodBye::new() }
}
}
struct Hello;
View app.component.ts
import { Component} from '@angular/core';
import * as htmlDocx from 'node_modules/html-docx-js/dist/html-docx.js';
import saveAs from 'src/app/fileSaver.js';
@Component({
selector: 'app-root',
template: `
<app-docx id="docx"></app-docx>
<button (click)="download()">download</button>
`
View playground.rs
use std::marker::PhantomData;
struct Normal;
struct Auction;
struct Stop;
enum Mode {
Normal(Normal),
Auction(Auction),
Stop(Stop),
View openpanzer-save.json
{"scenario":{"name":"Counter attack on the Mius","maxTurns":15,"date":"1943-08-04T22:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{"2":[],"3":[],"7":[{"row":9,"col":5,"unit":{"eqid":608,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":6,"flag":8,"destroyed":false,"player":null,"carrier":0,"moveLeft":3,"ammo":7,"fuel":0,"hasAnimation":false,"hits":0,"experience":423,"entrenchment":0,"entrenchTicks":0,"leader":-1,"transport":{"eqid":157,"ammo":4,"fuel":55,"icon":"resources/units/images/jk469.png"}},"turn":7,"id":1},{"row":9,"col":4,"unit":{"eqid":608,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":8,"facing":3,"flag":8,"destroyed":false,"player":null,"carrier":0,"moveLeft":3,"ammo":7,"fuel":0,"has
View is-internet-explorer-11.token.ts
import { InjectionToken } from '@angular/core';
export function isInternetExplorer11Factory(): boolean {
return navigator.userAgent.indexOf('Trident/7.0') !== -1;
}
export const isInternetExplorer11Token: InjectionToken<boolean> =
new InjectionToken('isInternetExplorer11', {
useFactory: isInternetExplorer11Factory,
});