Skip to content

Instantly share code, notes, and snippets.

View blewert's full-sized avatar
:electron:
back to electron!

Benjamin Williams blewert

:electron:
back to electron!
View GitHub Profile
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));
// 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>
// 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)
}
var timeout = 30 * 1000;
var lastKeyPress = +(new Date());
setInterval(update, 100);
function update()
{
var diff = +(new Date()) - lastKeyPress;
if(diff > timeout)
window.location.href = "../..";
@blewert
blewert / EnumWindowZOrder.cpp
Last active May 23, 2024 19:27
[windows.h] Iterating over all desktop windows in C++, by z-order
//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));
# 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]
%% 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

f

$$n \times (m_y / s_y)$$

SSQ sub-scales (250)

[207, 123]
[69, 38]
[136, 84]
/**
* @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;
%% 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}