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
sleep-with-countdown() { | |
secs=$1 | |
while [ $secs -gt 0 ]; do | |
printf "\rsleep: $secs\033[0K" | |
sleep 1 | |
: $((secs--)) | |
done | |
printf "\n" | |
} |
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
global presenterNotes | |
tell application "Keynote" | |
activate | |
open (choose file) | |
tell front document | |
do shell script "rm -f ~/keynote-notes.txt" | |
set num to 0 | |
repeat with aSlide in every slide | |
set num to num + 1 | |
do shell script "echo '-- " & num & " --' >> ~/keynote-notes.txt" |
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.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.SerializationFeature; | |
import com.google.common.io.Files; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.StringWriter; | |
import java.nio.charset.Charset; | |
import java.util.Arrays; |
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
{ | |
"specVersion":"0.9.0", | |
"contact":{ | |
"name":null, | |
"email":"[email protected]", | |
"url":null | |
}, | |
"contract":{ | |
"description":"", | |
"name":"apiname3", |
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
# ################### USER VIEW ################# # | |
DELETE user_view | |
# Pas de Mapping | |
PUT user_view | |
{ | |
"mappings": { | |
"umd": { | |
"properties": { | |
"im.im_id": { "type": "string"}, |