improvements to tiles
This commit is contained in:
parent
57733198e3
commit
61ea230e83
9 changed files with 69 additions and 15 deletions
5
content/assets/stylesheets/includes/blogpost.scss
Normal file
5
content/assets/stylesheets/includes/blogpost.scss
Normal file
|
@ -0,0 +1,5 @@
|
|||
.blogpost {
|
||||
.blogtitle {
|
||||
font-size: 4em;
|
||||
}
|
||||
}
|
8
content/assets/stylesheets/includes/tiles.scss
Normal file
8
content/assets/stylesheets/includes/tiles.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
.notification.is-info {
|
||||
.content {
|
||||
h1 {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,4 +17,6 @@ $family-sans-serif: 'Open Sans', sans-serif;
|
|||
@import "includes/variables";
|
||||
@import "includes/cammie";
|
||||
@import "includes/events";
|
||||
@import "includes/tiles";
|
||||
@import "includes/blogpost";
|
||||
@import "includes/general";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Xtext Workshop
|
||||
created_at: 01-04-2016
|
||||
description: Xtext is een ding, en heeft een workshop
|
||||
---
|
||||
|
||||
Op **26 april om 18:00 in Auditorium A2, Campus Sterre, Gebouw S9** organiseren we een workshop over [Xtext](https://eclipse.org/Xtext/). **Xtext** is een framework om nieuwe domein-specifieke computertalen (**DSLs**) mee te ontwerpen. Een **DSL** kan een nieuwe programmeertaal zijn, maar is meestal erg specifiek: bijvoorbeeld voor het besturen van robots, voor controle van wasmachines of voor sturing van de on-board computer in auto’s. Mensen die deze machines maken zijn vaak geen programmeurs, en zij kunnen veel vlotter werken met een DSL dan met een algemene programmeertaal.
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
title: AWK review
|
||||
description: We hebben even wat dingen in Awk geschreven, en dit zijn onze meningen
|
||||
created_at: 23-10-2016
|
||||
---
|
||||
|
||||
Awk is een toffe taal enal
|
36
content/posts/16-17/review-c.md
Normal file
36
content/posts/16-17/review-c.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: C review
|
||||
description: We hebben even wat dingen in C geschreven, en dit zijn onze meningen
|
||||
created_at: 23-10-2016
|
||||
---
|
||||
|
||||
> *Ben ik nu echt de enige die C echt niet leuk vindt?*
|
||||
>
|
||||
> <small>— Ilion Iasoon Beyst</small>
|
||||
|
||||
C is een toffe taal enal
|
||||
|
||||
~~~
|
||||
Individual *genetic_algo(Area *area, StationCol *stations, double lo, double hi) {
|
||||
// Initialize global variables
|
||||
init_coverage_polygon(area);
|
||||
MAX_POWER = power_to_energy_usage(43);
|
||||
|
||||
Population* p = generate_initial_population(POPULATION_SIZE, stations);
|
||||
recalculate_fitness(area, stations, p, lo, hi);
|
||||
|
||||
Individual* best = genetic_algo_exec(p, area, stations, POPULATION_SIZE, lo, hi, clock());
|
||||
for (size_t i = 0; i < best->size; i++) {
|
||||
printf("%d\n", best->distribution[i]);
|
||||
}
|
||||
printf("%f\n", calculate_energy_usage(stations, best));
|
||||
printf("%f\n", calculate_station_coverage(area, stations, best, NULL));
|
||||
|
||||
for (size_t i = 0; i < p->size; i++) {
|
||||
individual__free(p->elems[i]);
|
||||
}
|
||||
population__free(p);
|
||||
|
||||
return best;
|
||||
}
|
||||
~~~
|
|
@ -3,8 +3,8 @@ var tipuesearch = { "pages": [
|
|||
{
|
||||
"title": "<%= e[:title] %>",
|
||||
"url": "<%= url_for(e) %>",
|
||||
"text": "<%= excerptize(e.reps[:text].compiled_content, length: 200).gsub(/\n/, ' ') %>",
|
||||
"text": '<%= excerptize(e.reps[:text].compiled_content, length: 200).gsub(/\n/, ' ') %>',
|
||||
"tags": ""
|
||||
},
|
||||
<% end %>
|
||||
]};
|
||||
]}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="content">
|
||||
<h1 class="has-text-centered">
|
||||
<div class="content blogpost">
|
||||
<h1 class="has-text-centered blogtitle">
|
||||
<%= item[:title] %>
|
||||
</h1>
|
||||
<main>
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
<a href="<%= relative_path_to(@article) %>">
|
||||
<div class="notification is-info">
|
||||
<div class="event">
|
||||
<div class="main-tile">
|
||||
<div class="content">
|
||||
<h1>
|
||||
<%= @article[:title] %>
|
||||
</h1>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h1>
|
||||
<%= @article[:title] %>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="column is-narrow">
|
||||
<small>
|
||||
<%= @article[:created_at] %>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<%= @article[:description] %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue