Skip to content

Instantly share code, notes, and snippets.

View skoop's full-sized avatar
💭
Developing

Stefan Koopmanschap skoop

💭
Developing
View GitHub Profile
@skoop
skoop / file1.txt
Created November 25, 2017 12:10
Kata 2: parse old print files
_ _ _ _ _ _ _
| _| _||_||_ |_ ||_||_|
||_ _| | _||_| ||_| _|
_ _ _ _ _ _ _ _ _
| || || || || || || || || |
|_||_||_||_||_||_||_||_||_|
_ _ _ _ _ _ _ _ _
_| _| _| _| _| _| _| _| _|
@skoop
skoop / secondattempt.kt
Created November 25, 2017 10:26
Second attempt at doing the 99 bottles code kata with Kotlin
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 November 25, 2017 10:25
My first attempt at doing the 99 bottles code kata in Kotlin
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.")
{% setcontent latestnews = 'nieuwsberichten/latest/5' %}
{% for news in latestnews %}
// the content to display the newsitem here
{% endfor %}
{% for dj in records %}
// snippet
{% endfor %}
@skoop
skoop / dj
Created October 17, 2015 13:26
<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>
{% include "_header.twig" %}
@skoop
skoop / paths
Created October 17, 2015 13:24
<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>
@skoop
skoop / block
Created October 17, 2015 13:23
{% setcontent block = 'blocks' where { identifier_string: 'djs_wie_zijn_wij' } returnsingle %}
<h4 class="color_2">{{ block.title }}</h4>
<div class="box3">
{{ block.body }}
</div>