Test de message embedded :-)
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 actors | |
import scala.concurrent.duration._ | |
import scala.concurrent.Future | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import akka.actor.{ Actor, ActorRef, Props } | |
import akka.pattern.ask | |
import akka.util.Timeout |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.css"> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/theme/material.css"> | |
<style> | |
body { | |
background: #EFEFEF; | |
} | |
.display { | |
border: 1px solid #AAA; |
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
#!/bin/bash | |
debug="${DEBUG:-false}" | |
if [[ "$1" == "-d" ]]; then debug="true"; fi | |
timeout="${TIMEOUT:-300}" # 5 minutes | |
sleep_time="${SLEEP:-1}" # 1 second | |
check_docker_running() { | |
docker system info >/dev/null 2>&1 |
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
#!/usr/bin/env ruby | |
sockets = %x(ps ax -o args=).lines.grep(/tmux.*-L/).map{|l| l.chomp.match(/-L +([^ ]+)/)[1] }.uniq | |
servers = [['default', nil]] + sockets.sort.map{|s| [s, s] } | |
res = [] | |
servers.each do |srv, sock| | |
res << "#{srv}:" | |
arg = sock ? "-L #{sock}" : "" | |
%x(tmux #{arg} ls 2> /dev/null).each_line{|l| res << "- #{l.chomp}" } | |
res << "" |
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
#!/usr/bin/env ruby | |
require 'json' | |
def sort_json(json) | |
case json | |
when Hash; Hash[json.map { |k, v| [k, sort_json(v)] }.sort_by { |k| k }] | |
when Array; json.map { |v| sort_json(v) }.sort_by{ |v| v.to_json } | |
else json | |
end |
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
#!/bin/bash | |
first_url="$1" | |
dir="$2" | |
if [[ -z "$first_url" || -z "$dir" ]]; then | |
echo "usage: $0 <request url> <output directory>" >&2 | |
exit 1 | |
fi |
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
/* | |
SublimeLinter default settings | |
*/ | |
{ | |
/* | |
Sets the mode in which SublimeLinter runs: | |
true - Linting occurs in the background as you type (the default). | |
false - Linting only occurs when you initiate it. | |
"load-save" - Linting occurs only when a file is loaded and saved. |
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 foo | |
import scala.util._ | |
import play.api._ | |
import play.api.data.validation.ValidationError | |
import play.api.libs.json._ | |
object Foo { |
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
My awesome question |
NewerOlder