Skip to content

Instantly share code, notes, and snippets.

View necccc's full-sized avatar

Szabolcs Szabolcsi-Toth necccc

View GitHub Profile
@necccc
necccc / config.kdl
Last active September 22, 2021 07:42
event id="reinforce2021" label="Reinforce AI Conference 2021" {
date ticket-name-contains="ML/DL" label="December 2 & 9, 2020"
date ticket-name-contains="MLflow" label="November 23 & 24, 2020"
date ticket-name-contains="*" label="March 3–5, 2021"
catering ticket-name-contain="online" net-price=0
catering ticket-name-contain="*" net-price=90
[craft-conference-2021]
label = "CraftHub online workshops"
tito-signature-validator-env = "TITO_TOKEN_ONLINE_WSH"
[[craft-conference-2021.dates]]
ticket-name-contains = "ML/DL"
date = "December 2 & 9, 2020"
[[craft-conference-2021.dates]]
@necccc
necccc / README.md
Last active February 22, 2021 14:27
Home automation using Homekit on a budget

Software & Control

https://homebridge.io/

Has a pre-built RPI image as well.

Plugins used:

  • homebridge-broadlink-rm-pro
  • homebridge-shelly
@necccc
necccc / synthwave-x-fluoromachine.css
Created January 6, 2020 15:34
My Synthwave / fluoromachine VSCode theme mod, with less glow, and additional tweaks for comments, css, html & JSX
.mtk3, .mtk6 {
/* color: #61e2ff; */
/* text-shadow: 0 0 2px #001716, 0 0 5px #03edf933, 0 0 10px #ffff6633; */
}
.mtk4, .mtk5, .mtk14 {
color: #9963ff;
}
@necccc
necccc / synthwave-x-fluoromachine.css
Created January 6, 2020 15:34
My Synthwave / fluoromachine VSCode theme mod, with less glow, and additional tweaks for comments, css, html & JSX
.mtk3, .mtk6 {
/* color: #61e2ff; */
/* text-shadow: 0 0 2px #001716, 0 0 5px #03edf933, 0 0 10px #ffff6633; */
}
.mtk4, .mtk5, .mtk14 {
color: #9963ff;
}
@necccc
necccc / gist:5c29273edd348339cee5bac17586f761
Created November 9, 2019 09:52
Test gist with a single entry
Foo Bar baz
@necccc
necccc / IIAFE.js
Created November 4, 2019 21:17
Gist for "Upcoming ESNext features - Part 2"
// IIF
(() => { /* code */ })();
// IIAF
(async function () {
/* await code */
})()
@necccc
necccc / argument-placeholders.js
Created November 4, 2019 20:43
Gist for "Upcoming ESNext features - Part 1"
const add = function (a, b) { return a + b }
const addOne = add(1, ?) // will return a function, that needs one argument
addOne(2) // 3
addOne(6) // 7
[ 1,2,3 ].map(addOne) // [ 2,3,4 ]
@necccc
necccc / builder_example.js
Created October 21, 2019 07:32
Gist for Transform your codebase using codemods
// create a function call that looks like
// "myfunc(someVar, 'bar')"
const callExpr = j.callExpression(
j.identifier(‘myFunc’),
[
j.indentifier('someVar')
j.literal('bar'),
]
)
const collect = []
collect.push(Uint8Array.of(1,3,5,7))
collect.push(Uint8Array.of(2,4,6,8))
// ... and so on
// concat them in the end
const gif = new Blob(collect, { type: 'image/gif' })
URL.createObjectURL(gif)