Skip to content

Instantly share code, notes, and snippets.

19:12:03 T:139818746284096 NOTICE: special://profile/ is mapped to: special://masterprofile/
19:12:03 T:139818746284096 NOTICE: -----------------------------------------------------------------------
19:12:03 T:139818746284096 NOTICE: Starting Kodi (15.1 Git:Unknown). Platform: Linux x86 64-bit
19:12:03 T:139818746284096 NOTICE: Using Release Kodi x64 build
19:12:03 T:139818746284096 NOTICE: Kodi compiled Sep 29 2015 by GCC 5.2.0 for Linux x86 64-bit version 4.1.4 (262404)
19:12:03 T:139818746284096 NOTICE: Running on Arch Linux 0.0, kernel: Linux x86 64-bit version 4.2.3-1-ARCH
19:12:03 T:139818746284096 NOTICE: FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
19:12:03 T:139818746284096 NOTICE: Host CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz, 4 cores available
19:12:03 T:139818746284096 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
19:12:03 T:139818746284096 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
var macro;
macro ="CODE:";
macro +="SET !ERRORIGNORE YES" + "\n";
macro +="SET !TIMEOUT_TAG 1" + "\n";
macro +="SET !TIMEOUT_STEP 1" + "\n";
macro +="SET !TIMEOUT_PAGE 10" + "\n";
macro +="SET !REPLAYSPEED FAST" + "\n";
macro +="SET !ERRORIGNORE YES" + "\n";
macro +="WAIT SECONDS = 2" + "\n";
macro +="TAG POS=1 TYPE=SPAN ATTR=TXT:\"Ya no me gusta\"" + "\n";
#define VERDE PORTE.RE0
#define AMARILLO PORTE.RE1
#define ROJO PORTE.RE2
#define T_total 60
#define T_medio T_total/2
#define T_critico 3
#define SEGUNDO 50 //1000ms=SEGUNDO
sbit LCD_RS at RD1_bit;
sbit LCD_EN at RD0_bit;
#include <stdio.h>
#include <string.h>
struct Estudiante{
char matricula[10];
char nombre[30];
};
int buscaAlumnoPorCodigo(struct Estudiante alumnos[], int cantidad, char matricula[]);
int buscaAlumnoPorCodigo(struct Estudiante alumnos[], int cantidad, char matricula[]){
set $mode_search Search (g) google, (y) youtube, (d) D.O.I. paper
mode "$mode_search" {
bindsym g exec firefox "https://www.google.com.mx/?q=`xclip -o`", mode "default"
bindsym y exec firefox "https://www.youtube.com/results?search_query=`xclip -o`", mode "default"
bindsym d exec firefox "sci-hub.io/`xclip -o`", mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
@LaloHao
LaloHao / output.sh
Created May 19, 2016 20:26
Output from `make` command on lispkit repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 57144 100 57144 0 0 58633 0 --:--:-- --:--:-- --:--:-- 58609
==== quicklisp quickstart 2015-01-28 loaded ====
To continue with installation, evaluate: (quicklisp-quickstart:install)
For installation options, evaluate: (quicklisp-quickstart:help)
@LaloHao
LaloHao / lispkit-make-deps.sh
Created May 19, 2016 20:32
Command `make deps` on lispkit
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 57144 100 57144 0 0 77262 0 --:--:-- --:--:-- --:--:-- 77221
==== quicklisp quickstart 2015-01-28 loaded ====
To continue with installation, evaluate: (quicklisp-quickstart:install)
For installation options, evaluate: (quicklisp-quickstart:help)
@LaloHao
LaloHao / ob-spice.el
Created September 25, 2016 07:44
Quick modification to ob-spice.el from Tiago Weber
(defun org-babel-execute:spice (body params)
"Execute BODY with specified PARAMS."
(let ((body (org-babel-expand-body:spice body params))
(vars (mapcar #'cdr (org-babel-get-header params :var)))
textfile
imagefile
raw
result)
(org-babel-eval "ngspice " body)
(mapc (lambda (pair)
;;;; google-search.lisp
(in-package #:google-search)
(defun -search (term)
"Returns html for the given search `term'"
(let* ((query (list (cons "q" term))))
(drakma:http-request "http://www.google.com/search"
:parameters query)))
(defun make-board (size)
(make-array `(,size ,size ,size)))
(defvar *size* 8)
(defvar *score* (make-board *size*))
(defvar *matrix* (make-board *size*))
(defun dimension (size score matrix)
(dotimes (i size)
(dotimes (j size)