Skip to content

Instantly share code, notes, and snippets.

💭
Developing

Stefan Koopmanschap skoop

💭
Developing
View GitHub Profile
@skoop
skoop / file1.txt
Created Nov 25, 2017
Kata 2: parse old print files
View file1.txt
_ _ _ _ _ _ _
| _| _||_||_ |_ ||_||_|
||_ _| | _||_| ||_| _|
_ _ _ _ _ _ _ _ _
| || || || || || || || || |
|_||_||_||_||_||_||_||_||_|
_ _ _ _ _ _ _ _ _
_| _| _| _| _| _| _| _| _|
@skoop
skoop / secondattempt.kt
Created Nov 25, 2017
Second attempt at doing the 99 bottles code kata with Kotlin
View secondattempt.kt
package org.domcode.kata
fun main(args: Array<String>) {
for (i in 0..99) {
val bottleAmount: Int = getAmount(i)
val oneLess: Int = subtractOne(bottleAmount)
when {
bottleAmount > 1 -> println("$bottleAmount bottles of beer on the wall, $bottleAmount bottles of beer.")
bottleAmount == 1 -> println("$bottleAmount bottle of beer on the wall, $bottleAmount bottle of beer.")
@skoop
skoop / firstattempt.kt
Created Nov 25, 2017
My first attempt at doing the 99 bottles code kata in Kotlin
View firstattempt.kt
package org.domcode.kata
fun main(args: Array<String>) {
for (i in 0..99) {
val bottleAmount: Int = getAmount(i)
val oneLess: Int = subtractOne(bottleAmount)
if (bottleAmount > 1) {
println("$bottleAmount bottles of beer on the wall, $bottleAmount bottles of beer.")
if (oneLess == 1) {
println("Take one down, pass it around, $oneLess bottle of beer on the wall.")
View latest news
{% setcontent latestnews = 'nieuwsberichten/latest/5' %}
{% for news in latestnews %}
// the content to display the newsitem here
{% endfor %}
View dj loop
{% for dj in records %}
// snippet
{% endfor %}
View dj
<div class="grid_3">
<div class="event">
<img src="{{ thumbnail(dj.image, 270, 170) }}" alt="{{ dj.name }}"/>
<h6 class="color_2">
<a href="{{ dj.link }}">{{ dj.name }}</a>
</h6>
<p>{{ dj.teaser }}</p>
</div>
</div>
View paths
<link rel="icon" href="{{ paths.theme }}/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ paths.theme }}/css/grid.css">
<link rel="stylesheet" href="{{ paths.theme }}/css/owl.carousel.css"/>
<link rel="stylesheet" href="{{ paths.theme }}/css/style.css">
<script src="{{ paths.theme }}/js/jquery.js"></script>
<script src="{{ paths.theme }}/js/jquery-migrate-1.2.1.js"></script>
View block
{% setcontent block = 'blocks' where { identifier_string: 'djs_wie_zijn_wij' } returnsingle %}
<h4 class="color_2">{{ block.title }}</h4>
<div class="box3">
{{ block.body }}
</div>
You can’t perform that action at this time.