This file contains hidden or 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
%% | |
%% IEEEtranc.bst | |
%% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted) | |
%% Version 1.14 (2015/08/26) | |
%% | |
%% Copyright (c) 2003-2015 Michael Shell | |
%% Modified by Aaron Christiasen | |
%% | |
%% Original starting code base and algorithms obtained from the output of | |
%% Patrick W. Daly's makebst package as well as from prior versions of |
This file contains hidden or 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
global.eulerToQuaternion = function (heading, attitude, bank) { | |
var c1 = Math.cos(heading / 2) | |
var c2 = Math.cos(attitude / 2) | |
var c3 = Math.cos(bank / 2) | |
var s1 = Math.sin(heading / 2) | |
var s2 = Math.sin(attitude / 2) | |
var s3 = Math.sin(bank / 2) | |
return new quat( | |
c1 * c2 * c3 - s1 * s2 * s3, | |
s1 * s2 * c3 + c1 * c2 * s3, |
This file contains hidden or 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
type | |
X = ref object of RootObj | |
Y = ref object of X | |
proc inspect(x: X) = | |
if x is X: | |
echo("It's an X") | |
else: | |
echo("It's a Y") | |
This file contains hidden or 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
type | |
X = ref object of RootObj | |
Y = ref object of X | |
func inspect(x: X) = | |
if x is X: | |
echo("It's an X") | |
else: | |
echo("It's a Y") | |
This file contains hidden or 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
var BhhsToken; | |
function BhhsInit() { | |
BhhsToken = localStorage.getItem("BhhsToken"); | |
} | |
function BhhsLoginRequired(callback) { | |
$.get("http://bhhssite.azurewebsites.net/api/loginRequired/" + BhhsToken, callback); | |
} |
This file contains hidden or 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
var BhhsToken; | |
function BhhsInit() { | |
BhhsToken = localStorage.getItem("BhhsToken"); | |
} | |
function BhhsLoginRequired(callback) { | |
$.get("http://bhhssite.azurewebsites.net/api/loginRequired/" + BhhsToken, callback); | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; |
This file contains hidden or 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
<!doctype html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Emscripten-Generated Code</title> | |
<style> | |
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; } | |
textarea.emscripten { font-family: monospace; width: 80%; } | |
div.emscripten { text-align: center; } |
This file contains hidden or 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
global _main | |
extern _ExitProcess@4 | |
extern _MessageBoxA@16 | |
extern _GetProcessHeap@0 | |
extern _HeapAlloc@12 | |
section .text | |
_main: | |
; Place heap in eax |
This file contains hidden or 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
/// Part 1 | |
/// [X] Allow child to be registered under each category for a single day | |
/// [X] Calculate the daily bill for a single child | |
/// Part 2 | |
/// [ ] Create timesheets for an entire week | |
/// [ ] Calculate the weekly income for a single child | |
/// [ ] Format the output such that a bill can be given to a parent. | |
/// Rules | |
/// - If a child stays for AM, PM and lunch, they get a discount of £2 |