Skip to content

Instantly share code, notes, and snippets.

View babo's full-sized avatar

Attila Babo babo

View GitHub Profile
@babo
babo / magyar-szavak.txt
Created February 10, 2022 22:48 — forked from Konstantinusz/magyar-szavak.txt
Magyar szavak listája
This file has been truncated, but you can view the full file.
abajgat
abakusz
abál
abált
abaposztó
abárol
abba
abbahagy
abbahagyat
abbahagyogat
diff --git i/project.clj w/project.clj
index 66b878b..68ba0cb 100644
--- i/project.clj
+++ w/project.clj
@@ -3,6 +3,7 @@
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
+ :main dactyl-keyboard.dactyl
:dependencies [[org.clojure/clojure "1.7.0"]
diff --git i/project.clj w/project.clj
index 66b878b..68ba0cb 100644
--- i/project.clj
+++ w/project.clj
@@ -3,6 +3,7 @@
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
+ :main dactyl-keyboard.dactyl
:dependencies [[org.clojure/clojure "1.7.0"]
diff --git i/project.clj w/project.clj
index 66b878b..68ba0cb 100644
--- i/project.clj
+++ w/project.clj
@@ -3,6 +3,7 @@
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
+ :main dactyl-keyboard.dactyl
:dependencies [[org.clojure/clojure "1.7.0"]
diff --git i/project.clj w/project.clj
index 66b878b..68ba0cb 100644
--- i/project.clj
+++ w/project.clj
@@ -3,6 +3,7 @@
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
+ :main dactyl-keyboard.dactyl
:dependencies [[org.clojure/clojure "1.7.0"]
(ns dactyl-keyboard.dactyl
(:refer-clojure :exclude [use import])
(:require [clojure.core.matrix :refer [array matrix mmul]]
[scad-clj.scad :refer :all]
[scad-clj.model :refer :all]
[unicode-math.core :refer :all]))
(defn deg2rad [degrees]
(* (/ degrees 180) pi))
@babo
babo / 4x8.patch
Last active March 15, 2020 01:15
Patch for github.com:abstracthat/dactyl-manuform to let it generate 8 columns. The fixed-angles, fixed-x and fixed-z should have at least that many items as the number of columns.
diff --git i/src/dactyl_keyboard/dactyl.clj w/src/dactyl_keyboard/dactyl.clj
index f082903..097ae50 100644
--- i/src/dactyl_keyboard/dactyl.clj
+++ w/src/dactyl_keyboard/dactyl.clj
@@ -14,13 +14,13 @@
;;;;;;;;;;;;;;;;;;;;;;
(def nrows 4)
-(def ncols 5)
+(def ncols 8)
@babo
babo / arch40.json
Created January 31, 2020 23:43
arch40
[
[
{
"r": 15,
"x": 5,
"a": 6
},
"E"
],
[
import re
number = r'\d+ (?: \. \d*)?' # one or more digits, followed by an optional dot and zero or more digits
coord2 = re.compile(r'\s* \( \s* (?P<lat> {number}) \s* , \s* (?P<lon> {number}) \s* \) \s*'.format(number=number), re.VERBOSE)
s = '(23.34, 11)'
match = coord2.match(s)
if match:
lat, lon = float(match.group('lat')), float(match.group('lon'))
print('Captured coordinates {:0.2f} {:0.2f}'.format(lat, lon))
@babo
babo / Dockerfile
Last active April 27, 2018 22:32
Docker image with nVidia GPU and ROS support, used for Udacity Self Driving Car nanodegree capstone project.
FROM nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04
LABEL maintainer="[email protected]"
# Install ROS Kinetic robot
# install packages
RUN apt-get update && apt-get install -y --no-install-recommends \
dirmngr \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*