Skip to content

Instantly share code, notes, and snippets.

Samy Dindane Dinduks

Block or report user

Report or block Dinduks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e56a2d2d44eeae56689ebe26e997d408
### Keybase proof
I hereby claim:
* I am dinduks on github.
* I am dinduks ( on keybase.
* I have a public key whose fingerprint is FADC 0D5C 3721 DA17 DE26 9A35 0EE7 6616 CC58 1BE1
To claim this, I am signing this object:
package fr.univalence.kafkatraining.testapi;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;
import java.util.ArrayList;
import java.util.Arrays;
package fr.univalence.kafkatraining.testapi;
import java.util.Properties;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.KafkaProducer;
class TestKafkaProducer {
private static Properties kafkaProps() {
Properties props = new Properties();
props.put("bootstrap.servers", "localhost:9092");
Dinduks / kdo.scala
Created Apr 6, 2016
Mapping des anciens noms vers les nouveaux noms des régions de la France
View kdo.scala
val regions = Map(
"Guadeloupe" -> "Guadeloupe",
"Martinique" -> "Martinique",
"Guyane" -> "Guyane",
"La Réunion" -> "La Réunion",
"Mayotte" -> "Mayotte",
"Ile-de-France" -> "Ile-de-France",
"Centre" -> "Centre-Val de Loire",
"Bourgogne" -> "Bourgogne-Franche-Comté",
"Franche-Comté" -> "Bourgogne-Franche-Comté",
Dinduks / gist:7791eedd504bd74187f2
Last active Aug 29, 2015
Akl-Toussaint algorithm
View gist:7791eedd504bd74187f2
object Main extends App {
val a = Point(1, 3)
val b = Point(1, 1)
val c = Point(3, 1)
val d = Point(3, 3)
val inside = List(Point(2, 2), Point(3, 2), a, b, c, d)
val outside = List(Point(5, 6), Point(0, 0))
val result = AklToussaint(Quadrilateral(a, b, c, d), inside ++ outside)
View gist:9645389
def defaultValue(valDef: ValDef): Option[String] = {
val value = valDef.toString().split(" = ")(1)
if (value == "_") None else Some(value)
Dinduks / gist:9497945
Last active Aug 29, 2015
Error Report
View gist:9497945
20140312T001044Z I org.dmfs.caldav.autheticator.AuthenticatorActivity calendar discovery log:
20140312T001046Z V WebCal running Head request
20140312T001046Z I WebCal HEAD request failed, retrying GET request
20140312T001046Z V org.dmfs.dav.methods.DavGet Code : 405
App: org.dmfs.caldav.lib
App version: 0.4.3
OS version: 19
OS Info: google/occam/mako:4.4.2/KOT49H/937116:user/release-keys
View patch.diff
From 4ae2796a6d68330ecded292edca26938ed0505a0 Mon Sep 17 00:00:00 2001
From: Samy Dindane <>
Date: Sun, 22 Dec 2013 23:07:49 +0000
Subject: [PATCH] Add pollReleasedKeys to Zen3
lib/zen/src/fr/umlv/zen3/ | 17 +++++++++++++++--
lib/zen/src/fr/umlv/zen3/ | 10 +++++++++-
2 files changed, 24 insertions(+), 3 deletions(-)
View CampaignController.js
'views/analytics/BuzzerModalView', 'views/analytics/MetricsView',
'views/charts/AreaSplineChart', 'views/charts/BarChart', 'views/charts/PieChart', 'views/charts/ChartSelectView',
'models/MetricsObject', 'models/User',
* Heavily based on
* clang -o ../holylight-checker holylight-checker.m -framework IOKit -framework CoreFoundation
#include <mach/mach.h>
#import <IOKit/IOKitLib.h>
#import <CoreFoundation/CoreFoundation.h>
You can’t perform that action at this time.