Skip to content

Instantly share code, notes, and snippets.

View sebastianfrelle's full-sized avatar

Sebastian Frelle Koch sebastianfrelle

  • Aarhus, Denmark
View GitHub Profile
@sebastianfrelle
sebastianfrelle / greeting.rs
Last active August 22, 2019 11:11
Greeting between two people
trait Greetable {
fn greeting_for_other(&self, other: &Self) -> String;
}
struct Person<'a> {
name: &'a str,
age: u8,
}
impl<'a> Greetable for Person<'a> {

{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Exercise 1\n", "\n", "## Part 2\n", "\n",

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
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
],

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
@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));
{ header: 1432778632,
droneState:
{ flying: 0,
videoEnabled: 0,
visionEnabled: 0,
controlAlgorithm: 0,
altitudeControlAlgorithm: 1,
startButtonState: 0,
controlCommandAck: 0,
cameraReady: 1,
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;
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