Skip to content

Instantly share code, notes, and snippets.

View rogargon's full-sized avatar
👷‍♂️
#BUIDLing 🏗

Roberto García rogargon

👷‍♂️
#BUIDLing 🏗
View GitHub Profile
@alexellis
alexellis / base.Dockerfile
Last active March 16, 2021 12:36
Docker swarm service to mine into the Nice Hash pool
# Published on Docker Hub with above user alexellisio.
# If you want to rebuild your own copy, follow below instructions
# Build this on each type of machine so you have the correct CPU extensions.
FROM alexellisio/boostbase
RUN git clone -b Linux https://github.com/nicehash/nheqminer.git
RUN cd nheqminer/cpu_xenoncat/Linux/asm/ && sh assemble.sh && cd ../../../Linux_cmake/nheqminer_cpu && cmake . && make
ENTRYPOINT ["./nheqminer/Linux_cmake/nheqminer_cpu/nheqminer_cpu"]
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Mac OS X 10.5+ Cursive" parent="Mac OS X 10.5+">
<action id=":plugin.actions.paredit/backward">
<keyboard-shortcut first-keystroke="shift meta H" />
</action>
<action id=":plugin.actions.paredit/backward-down">
<keyboard-shortcut first-keystroke="control meta U" />
</action>
<action id=":plugin.actions.paredit/backward-up">
<keyboard-shortcut first-keystroke="shift meta U" />
@jmgimeno
jmgimeno / rps.clj
Created March 17, 2012 18:59
Rock, paper, scissors
;; Una de les formes de trobar bones solucions és trobar bones
;; estructures de dades de partida.
;; Aquí has de representar tres coses:
;; 1. Regles del joc (quina cosa guanya a què)
;; 2. Resultats d'una ronda
;; 3. Resulatats d'un torneig
;; Formes de representar 1.
@davidkaste
davidkaste / rps.clj
Created March 15, 2012 16:11
RPS game based on nested vectors. Written in Clojure
(defn rpswinner
[match]
(if (= ((match 0) 1) ((match 1) 1))
(match 0)
(if (and (= ((match 0) 1) "R") (= ((match 1) 1) "P"))
(match 1)
(if (and (= ((match 0) 1) "P") (= ((match 1) 1) "S"))
(match 1)
(if (and (= ((match 0) 1) "S") (= ((match 1) 1) "R"))
(match 1)