Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
A vida é dura pra quem é mole, a vida é mole pra quem é duro

Jean Louis Borba Rosa Salbego jlouiss

💭
A vida é dura pra quem é mole, a vida é mole pra quem é duro
View GitHub Profile
@jlouiss
jlouiss / lisp-web-server.lsp
Created Jul 15, 2020
Credit: Land of Lisp
View lisp-web-server.lsp
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; version 2 of the License.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; Partial Author: Conrad Barski, M.D.
@jlouiss
jlouiss / lisp-html-server.lsp
Created Jul 15, 2020
Credit: Practical Common Lisp
View lisp-html-server.lsp
(in-package :com.gigamonkeys.url-function)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; API
(defmacro define-url-function (name (request &rest params) &body body)
(with-gensyms (entity)
(let ((params (mapcar #'normalize-param params)))
`(progn
(defun ,name (,request ,entity)
@jlouiss
jlouiss / lisp-simple-database.lsp
Created Jul 15, 2020
Credit: Practical Common Lisp
View lisp-simple-database.lsp
(in-package :com.gigamonkeys.simple-db)
(defvar *db* nil)
(defun make-cd (title artist rating ripped)
(list :title title :artist artist :rating rating :ripped ripped))
(defun add-record (cd) (push cd *db*))
(defun dump-db ()
View lisp-factorial.lsp
(defun factorial (n)
(if (= n 0) 1
(* n (factorial (- n 1)))))
View Web development.md
View gist:cbb6a430590605a82c987964c218ab2c
https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-343655365
[ugjka@archee ~]$ cat /etc/fonts/conf.d/50-noto-color-emoji.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family">
@jlouiss
jlouiss / fix-infinality.md
Created Sep 15, 2018 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.
View fix-infinality.md

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

View pok3r-notes.md

Pok3r Notes

  • enable the third dipswitch after setting custom bindings
  • FN + R doesn't work with the third dipswitch turned off
You can’t perform that action at this time.