Skip to content

Instantly share code, notes, and snippets.

View AdamJonsson's full-sized avatar
🎯
Focusing

Adam Jonsson AdamJonsson

🎯
Focusing
View GitHub Profile
@AdamJonsson
AdamJonsson / suprise.js
Last active February 8, 2020 14:22
A example how binding works in JS
// Look at the following class
class Suprise {
constructor(name, age) {
this.name = name;
this.age = age;
setTimeout(this.alertSuprise, 1000);
}
alertSuprise() {
@AdamJonsson
AdamJonsson / Modial.dtd
Last active October 6, 2019 06:59
The modial dtd and xml file for lab 3
<!-- XML DTD "mondial.dtd":
(Wolfgang May, may@informatik.uni-freiburg.de, March 2000, revised April 2009)
a hierarchical DTD for the MONDIAL database,
containing e.g.,
- scalar reference attributes (city/capital)
- multivalued reference attributes (organization/member/country)
- cross-references in both directions (organization/member/country,
country/memberships)
- a "boolean"/flag attribute: city/is_country_cap
- reference attributes with more than one target class
@AdamJonsson
AdamJonsson / main.dart
Created April 30, 2019 06:32
An example how different widget can be used to expand and collapse content in Flutter
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Expanding Demo',
theme: ThemeData(