Normal italique gras code
- point une
- point deux
- point trois
- point une
- point deux
- point trois
USING: accessors arrays byte-arrays calendar fry google.search | |
io io.directories io.directories.hierarchy io.directories.search | |
io.encodings.utf8 io.files io.launcher io.pathnames io.pipes | |
io.timeouts kernel locals make namespaces sequences splitting | |
strings unicode.categories webbrowser wordtimer ; | |
IN: spotlight | |
! *** MAC OS X 10.6.8 & LATER: IMPLEMENTING mdfind, mdls, mdutil, mdimport *** | |
! *** SEARCHING ON OS X VIA SPOTLIGHT METADATA INDEX, & MANAGING INDEXING FROM FACTOR *** |
diff --git a/libi3/font.c b/libi3/font.c | |
index 9433467c..3659f4da 100644 | |
--- a/libi3/font.c | |
+++ b/libi3/font.c | |
@@ -87,10 +87,12 @@ static bool load_pango_font(i3Font *font, const char *desc) { | |
static void draw_text_pango(const char *text, size_t text_len, | |
xcb_drawable_t drawable, xcb_visualtype_t *visual, int x, int y, | |
int max_width, bool pango_markup) { | |
+ bool separator = (text[0] == ""[0]) || (text[0] == "🭅"[0]); | |
/* Create the Pango layout */ |
# Add ~/.janet to module/paths | |
(let [base-dir (string (os/getenv "HOME") "/.janet")] | |
(array/insert module/paths 0 | |
(tuple (string base-dir "/:all:/:name:.:native:") :native)) | |
(array/insert module/paths 0 | |
(tuple (string base-dir "/:all:.:native:") :native)) | |
(array/insert module/paths 0 | |
(tuple (string base-dir "/:all:/init.janet") :source)) | |
(array/insert module/paths 0 | |
(tuple (string base-dir "/:all:.janet") :source)) |
Normal italique gras code
package main | |
import ( | |
"log" | |
"github.com/micro/go-micro/broker" | |
"github.com/micro/go-micro/cmd" | |
"broker/particle" | |
) |
def -allow-override -params 1 godoc %{ | |
%sh{ | |
output=$(mktemp -d -t kak-temp-XXXXXXXX)/fifo | |
mkfifo ${output} | |
(go doc $1 > ${output}) > /dev/null 2>&1 < /dev/null & | |
echo "eval -client %opt{docsclient} echo ' | |
edit! -fifo ${output} *godoc* | |
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output})}} | |
'" | |
} |
var fruits = [ | |
'banane', | |
'mangue', | |
'orange' | |
]; | |
// L'operateur => c'est un shorthand pour les fonction de ce genre la si on l'appliquait a du JS | |
_.filter(fruits, function (fruit) { | |
return fruit.match(/^b/) |
class ERB | |
module Util | |
HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' } | |
end | |
end |
$stack, $draws = [], {} | |
def method_missing *args | |
return if args[0][/^to_/] | |
$stack << args.map { |a| a or $stack.pop } | |
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
end | |
class Array | |
def +@ |
#!/bin/bash | |
name=webnoir | |
pidfile=/var/run/$name.pid | |
if [ -f "$pidfile" ]; then | |
pid=`cat $pidfile` | |
running=`ps p $pid |wc -l` | |
if [ $running -eq 1 ]; then | |
pid= |