[207, 123]
[69, 38]
[136, 84]
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
from math import floor | |
def assign_equal_groups(sample_size, num_groups): | |
return_list = []; | |
group_size = sample_size / num_groups; | |
for i in range(0, sample_size): | |
v = (i / group_size) % num_groups; | |
return_list.append(floor(v)); |
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
// threaded-file-read.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <thread> | |
#include <iostream> | |
#include <vector> | |
#include <functional> | |
#include <fstream> | |
#include <string> |
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
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
Shader "Nature/Terrain/Flipped Standard" | |
{ | |
Properties | |
{ | |
// used in fallback on old cards & base map | |
[HideInInspector] _MainTex("BaseMap (RGB)", 2D) = "white" {} | |
[HideInInspector] _Color("Main Color", Color) = (1,1,1,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
var timeout = 30 * 1000; | |
var lastKeyPress = +(new Date()); | |
setInterval(update, 100); | |
function update() | |
{ | |
var diff = +(new Date()) - lastKeyPress; | |
if(diff > timeout) | |
window.location.href = "../.."; |
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
//Find the top-most window. We need the Z-order to be | |
//relative to this | |
HWND window = GetTopWindow(GetDesktopWindow()); | |
do | |
{ | |
//Your code | |
} | |
while (window = GetWindow(window, GW_HWNDNEXT)); |
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
# skills assessment booklet info | |
[teamwork] | |
Ability to form relationships at all levels and motivate and support other team members;Willingness to ask others for advice or help when solving a problem;Ability to work fairly and productively alongside others | |
[emotional intelligence] | |
Ability to recognise the emotions of others and adapt your behaviour accordingly;Ability to use social awareness and empathy towards others;Adapt your communication style depending on the audience | |
[feedback] |
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
%% Benjamin Williams <bwilliams@lincoln.ac.uk> | |
%% jake_charts.m (GNU Octave, not MATLAB) | |
%% | |
%% pdflatex rendering charts for our paper, 'a somatic approach to combating | |
%% cybersickness utilising airflow feedback' | |
close all | |
clear all |
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
/** | |
* @file ArcadeGameQuit.cs | |
* @author Benjamin Williams <bwilliams@lincoln.ac.uk> | |
* | |
* @license CC 3.0 <https://creativecommons.org/licenses/by-nc-nd/3.0/> | |
*/ | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; |
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
%% Benjamin Williams <bwilliams@lincoln.ac.uk> | |
%% Get in touch if you have any questions or problems! | |
%% University of Lincoln Computer Science Thesis Template | |
% The document class -- remove [harvard] if you want | |
% numeric-style referencing. | |
\documentclass[harvard]{lincolncsthesis} | |
% Custom packages that you need to include | |
\input{preamble/packages.tex} |