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
@babo
babo / aws_resources.py
Created December 20, 2015 12:50
Skeleton to list all AWS resources by security group.
#!/usr/bin/env python3
import json
import boto3
def main():
all_ec2 = {}
all_rds = {}
all_cache = {}
all_elb = {}
@babo
babo / pubsub_cleaner.py
Last active September 14, 2020 09:51
Delete a specific message
import json
from google.cloud import pubsub
# Instantiates a client
pubsub_client = pubsub.Client()
sbscr = pubsub_client.subscription('demoapi_subscription_createTenant')
i = 0
while True:
for x in sbscr.pull(return_immediately=True):
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"
],
[