Skip to content

Instantly share code, notes, and snippets.

View sebastianfrelle's full-sized avatar

Sebastian Frelle Koch sebastianfrelle

  • Aarhus, Denmark
View GitHub Profile
require "securerandom"
class Player
def initialize name
@name = name
@games = [] # what are all the games this player has been involved in?
# IDEAS for attributes
# - Time stamp for creation of this player object
# - UUID because multiple players might have similar names
var MainModule = (function() {
var alertMsg = "Der er fejl izi game izi lyfe";
function privateGetAlertMsg() {
return alertMsg;
}
function privateSetAlertMsg(newAlertMsg) {
alertMsg = newAlertMsg;
}
class LambdaTester {
interface MathOperation {
int operation(int a, int b);
}
public static void main(String[] args) {
System.out.println(testLambda(
2,
3,
(a, b) -> a + b
package com.socializr.socializr_app.networking;
import com.socializr.socializr_app.models.Event;
import com.socializr.socializr_app.models.PersonalUserDTO;
import com.socializr.socializr_app.networking.marshall.AddUserToEventQueueMarshall;
import com.socializr.socializr_app.networking.marshall.ChangePasswordMarshall;
import com.socializr.socializr_app.networking.marshall.GetEventsForCardStackMarshall;
import com.socializr.socializr_app.networking.marshall.LoginMarshall;
import com.socializr.socializr_app.networking.marshall.RegisterMarshall;
import com.socializr.socializr_app.networking.marshall.UpdateDescriptionMarshall;
{ header: 1432778632,
droneState:
{ flying: 0,
videoEnabled: 0,
visionEnabled: 0,
controlAlgorithm: 0,
altitudeControlAlgorithm: 1,
startButtonState: 0,
controlCommandAck: 0,
cameraReady: 1,
@Override
public Object execute(ExecutionEvent event) throws ExecutionException
{
final Transition transition = getTransition(event.getApplicationContext());
if (isEnabled(transition))
{
EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(transition);
if (domain != null)
{
domain.getCommandStack().execute(new FireTransitionCommand(domain, transition));
@Override
public Object execute(ExecutionEvent event) throws ExecutionException
{
final Transition transition = getTransition(event.getApplicationContext());
if (isEnabled(transition))
{
EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(transition);
if (domain != null)
{
domain.getCommandStack().execute(new FireTransitionCommand(domain, transition));

Todo list

  • Make capsule longer
  • Demo material
    • Save main canvas to prefab
    • Add HitTestCubes to developer mode
    • LetterCubesScene
      • Rotate boxes on platform by 180 deg
      • Particles on completion
  • Screen recording
var datasets = {
small: {
orderly: [5, 10, 15, 20, 25],
messy: [25, 7, 5, 26, 11],
},
large: {
messy: [
25, 7, 5, 26, 11, 8, 25, 14, 23, 19, 14, 11, 22, 29, 11, 13, 12, 17,
18, 10, 24, 18, 25, 9, 3
],

Exercise 1

Part 2

  • 7 common HTML elements
    • head, html, div, span, p, body, title, table, tr, td...
  • Difference between class and id HTML attributes
    • class can be used multiple times per page
    • Each element can have multiple classes
  • id only once per page