Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""mlflow integration for KerasTuner | |
Copyright: Soundsensing AS, 2021 | |
License: MIT | |
""" | |
import uuid | |
import structlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clean install Ubuntu 22.04.2 LTS | |
# tested on rx7800XT | |
# Install Drivers on Drivers section from this Gist | |
################ START ################ | |
# Download and extract Zluda and drop it on /opt/rocm-6.0.2/lib | |
# https://github.com/vosen/ZLUDA/releases/ | |
# go to /opt/rocm/lib | |
# Create a Copy librocblas.so.4 and rename it to librocblas.so.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
WooCommerce has a handy feature in the admin UI to "Create variations from all attributes". | |
To do this programmatically (as of WooCommerce v3.7.0) use a modified version of link_all_variations() found in woocommerce/includes/class-wc-ajax.php | |
*/ | |
function myplugin_create_variations($product_id){ | |
wc_maybe_define_constant( 'WC_MAX_LINKED_VARIATIONS', 50 ); | |
wc_set_time_limit( 0 ); |
Originally written 2020-05-16
dune-release
is a good improvement over the old opam-publish
, but releasing
software is still clearly not a solved problem, and I find it hard to remember
the exact steps involved in releasing an opam package, especially if some time
has passed since the last release. This note is an attempt at having a place
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/helpers/json-pretty-print.js | |
// usage {{json-pretty-print someJson}} | |
// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_space_argument | |
import Helper from '@ember/component/helper'; | |
export default Helper.extend({ | |
compute(params, hash) { | |
const [json] = params; | |
return JSON.stringify(json, null, ' '); |
UPDATE: You don't need shims anymore! We can just use this now, and eventually it'll even be in Ember core.
app.import()
works with node_modules
now! As of Ember 2.15. Previously it only worked with bower_components
and vendor
.
Docs for app.import
are here:
https://ember-cli.com/managing-dependencies#standard-non-amd-asset
Short link: caseywatts.com/selpattern
const sel = {
addonCard: 'a.card'
};
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph bubbles { | |
node [ | |
color=lightcyan2, | |
style=filled, | |
fillcolor=lightcyan | |
] | |
edge [ | |
color=white | |
] | |
Keys
G | C | F | Bb | Eb | Ab |
---|---|---|---|---|---|
1 | 0 | 1 | 2 | 3 | 4 |
F# | _ | Bb | Bb, Eb | Bb, Eb, Ab | Bb, Eb, Ab, Db |
Song | Key | Starting Note |
---|---|---|
Gloucestershire Wassail | G | D (5) -> G (1) |
NewerOlder