Skip to content

Instantly share code, notes, and snippets.

View enesacikoglu's full-sized avatar
👨‍💻
Love to contribute

Enes Açıkoğlu enesacikoglu

👨‍💻
Love to contribute
View GitHub Profile
@bilal-kilic
bilal-kilic / CoroutinesUtils.kt
Created September 16, 2019 08:31 — forked from jivimberg/CoroutinesUtils.kt
SQS Consumer using Kotlin coroutines and pool of workers.
package com.jivimberg.sqs.published
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.isActive
import kotlinx.coroutines.yield
import java.lang.Thread.currentThread
suspend fun CoroutineScope.repeatUntilCancelled(block: suspend () -> Unit) {
while (isActive) {
@CanerPatir
CanerPatir / PipelineStep.java
Last active August 25, 2020 21:48
Simple pipeline implementation to supply fluent and readable DSLs for business workflows through using Java 8 functional features
@FunctionalInterface
public interface PipelineStep<I, O, Ctx> {
static <I, O, Ctx> PipelineStep<I, O, Ctx> of(PipelineStep<I, O, Ctx> source) {
return source;
}
O execute(I value, Ctx context) throws Exception;
default <R> PipelineStep<I, R, Ctx> pipe(PipelineStep<O, R, Ctx> next) {
@enesacikoglu
enesacikoglu / SpringDataRestPageable.java
Created February 2, 2018 11:32
SpringDataRest Pageable Example
/**
Main start
*/
package com.cengenes;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active April 24, 2024 00:11
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
import play.db.jpa.JPA;
public class FirstDao {
public int dbCall() {
return JPA.em()
.createNativeQuery("DELETE FROM table WHERE id=1")
.executeUpdate();
}
@roachhd
roachhd / README.md
Last active May 4, 2024 08:07
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄