Skip to content

Instantly share code, notes, and snippets.

;;;; 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)
export EDITOR=et
export ZSH=/usr/share/oh-my-zsh
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/share/antigen.zsh
antigen bundle git-prompt
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
@LaloHao
LaloHao / e.sh
Created April 5, 2017 03:50
Accesos para emacs
#!/bin/sh
emacsclient -c $@
#---- Generated by tint2conf 1260 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
;; -*- mode: stumpwm -*-
(in-package :stumpwm)
(set-prefix-key (kbd "s-t"))
;; (setf *window-border-style* :none)
;; (ql:quickload :xembed)
;; (load-module "stumptray")
;; (run-commands "stumptray")
;;; Init.el --- Configuración personal.
;;; Commentary:
;;; Code:
(defun toggle-window-split ()
(interactive)
(if (= (count-windows) 2)
(let* ((this-win-buffer (window-buffer))
(next-win-buffer (window-buffer (next-window)))
(this-win-edges (window-edges (selected-window)))
url = https://github.com/Dewdrops/powerline
import React, { Component } from 'react';
import {
View,
Text,
TouchableOpacity
} from 'react-native';
import ModalTester from './ModalTester.js';
@LaloHao
LaloHao / elnode-ijs.el
Created June 8, 2018 00:05 — forked from nicferrier/elnode-ijs.el
A complete javascript shell with elnode. It's pretty simple obviously and there's a lot of return value hacking to do. It's quite interesting that this stuff is so easy though. I think it might be a useful addition to any elnode project to map in a handler that let you control the javascript from the elnode emacs instance.
;;; interactive javascript shell with elnode -*- lexical-binding: t -*-
(elnode-app elnode-ijs-dir comint uuid)
(defvar elnode-ijs/input nil
"Input for the js shell.
Each element is a cons of a uuid and the javascript to send.")
(defvar elnode-ijs/input-hash (make-hash-table :test 'equal)