Skip to content

Instantly share code, notes, and snippets.

@hanksudo
hanksudo / Front-end-Developer-Interview-Questions-TC.md
Last active May 2, 2024 06:22
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@jonnor
jonnor / mlflow_keras_tuner.py
Created November 14, 2021 17:59
MLFlow integration for Keras-Tuner
"""mlflow integration for KerasTuner
Copyright: Soundsensing AS, 2021
License: MIT
"""
import uuid
import structlog
@hqnicolas
hqnicolas / How to kohya_ss on AMD 7800xt
Last active May 2, 2024 06:15
7800xt ZLUDA Training LORA of the latest version of kohya_ss on AMD GPU Ubuntu 22.04.2 LTS CUDA
# 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
@MogulChris
MogulChris / gist:8fa67eedf01ef759e92e33a8e784aaa0
Created October 15, 2019 20:25
WooCommerce programmatically create variations from all attributes
<?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 );

Using dune-release to release OCaml packages

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

@caseywatts
caseywatts / json-pretty-print.js
Last active May 2, 2024 06:06
Ember helper {{json-pretty-print someJson}}
// 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, ' ');
@caseywatts
caseywatts / 0 README.md
Last active May 2, 2024 06:06
d3 & c3 npm shim to es6 module for Ember
@caseywatts
caseywatts / 0 Guidelines.md
Last active May 2, 2024 06:06
sel pattern
@caseywatts
caseywatts / bubbles.dot
Last active May 2, 2024 06:05
Bubbles! Graphviz Diagram
digraph bubbles {
node [
color=lightcyan2,
style=filled,
fillcolor=lightcyan
]
edge [
color=white
]