This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this will find all folders with a file named versions.tf | |
# and prepend its contents to the file main.tf in the same directory | |
for p in $(find -name "versions.tf"); do | |
main=$(echo $p | sed 's/versions/main/' ); | |
echo -e "$(cat $p)\n\n$(cat $main)" > $main; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.license.core.restdocs | |
import org.junit.jupiter.api.BeforeAll | |
import org.junit.jupiter.api.Test | |
import org.junit.jupiter.api.TestInstance | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.test.autoconfigure.restdocs.AutoConfigureRestDocs | |
import org.springframework.boot.test.context.SpringBootTest | |
import org.springframework.restdocs.RestDocumentationContextProvider | |
import org.springframework.restdocs.headers.HeaderDocumentation.headerWithName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext.kotlin_version = '1.3.21' | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21" | |
classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.21" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.Gson | |
import com.google.gson.annotations.SerializedName | |
val json = """ | |
{ | |
"History": | |
[ | |
{"Added": 2000} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.license.core.validation | |
import javax.validation.Constraint | |
import javax.validation.ConstraintValidator | |
import javax.validation.ConstraintValidatorContext | |
import javax.validation.Payload | |
import kotlin.reflect.KClass | |
@Target(AnnotationTarget.FIELD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
plugins { | |
val kotlinVersion = "1.3.21" | |
kotlin("jvm") version kotlinVersion | |
java // required by JUnit | |
} | |
group = "io.quantus" | |
version = "1.0-SNAPSHOT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.quantus.winterinantwerpen.api; | |
import android.content.Context; | |
import android.location.LocationManager; | |
import android.util.Log; | |
import com.squareup.okhttp.Cache; | |
import com.squareup.okhttp.Interceptor; | |
import com.squareup.okhttp.OkHttpClient; | |
import com.squareup.okhttp.Request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = auto | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status -sb | |
visual = qgit4 | |
df = diff | |
dfs = diff --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by @vbsteven on 09/10/15. | |
* | |
* Run with "javac TestArray.java && java TestArray" | |
*/ | |
public class TestArray { | |
public static void main(String[] args) { | |
long sum = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; json formatting functions | |
;; replace region with json formatted version | |
(defun json-format () | |
(interactive) | |
(save-excursion | |
(shell-command-on-region (mark) (point) "python -m json.tool" (buffer-name) t) | |
) | |
) |