Skip to content

Instantly share code, notes, and snippets.

View ralt's full-sized avatar

Florian Margaine ralt

View GitHub Profile
@ralt
ralt / background.js
Created December 15, 2014 08:57
Progress... on a chrome NativeMessaging receiving app
chrome.browserAction.onClicked.addListener(connect);

Keybase proof

I hereby claim:

  • I am ralt on github.
  • I am fmargaine (https://keybase.io/fmargaine) on keybase.
  • I have a public key whose fingerprint is 59C0 D5DA 7AEB 336D 1424 BF56 843F 6D75 3D94 972A

To claim this, I am signing this object:

So... my use case is the following: I have 2 screens. And I have ~3-5
windows on each screen. So I want an easy way to go to each window
quickly.
I currently have this in my .stumpwmrc to help with this:
(loop for i from 1 to 9
do (define-key
*top-map*
(kbd (format nil "s-~d" i))
I am the Miaou user with id 3 and name "Florian" on http://dystroy.org/miaou
@ralt
ralt / gist:cd241e91428ffbc43f89
Created January 30, 2015 16:18
Makefile 1-1 different folders
SCSS_SOURCES := $(wildcard scss/*.scss)
CSS_OUT := $(patsubst %.scss, tmp/%.css, $(notdir $(SCSS_SOURCES)))
all: gen-css
tmp/%.css: scss/%.scss
cp $< $@
gen-css: $(CSS_OUT)
(defcommand head-windowlist () ()
"shows the list of windows on a single head"
(select-window-from-menu
(head-windows (current-group) (current-head))
*window-format*))
(ql:quickload 'lparallel)
(ql:quickload 'cl-irc)
(ql:quickload 'bordeaux-threads)
(let ((chan (lparallel:make-channel))
(connection (cl-irc:connect :nickname "Ralt__" :server "irc.freenode.net")))
(cl-irc:add-hook
connection
'cl-irc:irc-message
#'(lambda (msg)
(ql:quickload 'lparallel)
(ql:quickload 'cl-irc)
(ql:quickload 'bordeaux-threads)
(let ((queue (lparallel.queue:make-queue))
(connection (cl-irc:connect :nickname "Ralt__" :server "irc.freenode.net")))
(cl-irc:add-hook
connection
'cl-irc:irc-message
#'(lambda (msg)
<?php
declare(strict_type=1);
require_once('fileB.php');
function foo(int $bar) {
bar($bar);
}