Skip to content

Instantly share code, notes, and snippets.

@hvoecking
hvoecking / translate.go
Last active March 28, 2024 13:52
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
@psydvl
psydvl / !Win postinstall.md
Last active March 28, 2024 13:52
My Windows minimal post-install (probably abandoned)

Install programms and neccesesary tools in Windows

Scoop.sh | Winget.run | winget

To run init.ps1, you should execute next two lines

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb git.io/psydvl-win | iex

Script also doing little $PROFILE (both PowerShell 5&7) enhancement with functions:

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 13:52
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active March 28, 2024 13:44 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@gaga5lala
gaga5lala / myToReadBookLists.md
Created July 13, 2016 13:59 — forked from chusiang/myToReadBookLists.md
凍仁的讀書清單
@davesgonechina
davesgonechina / list-dbt-tags-in-use.txt
Last active March 28, 2024 13:43
List tags in a dbt project
# Found in https://github.com/dbt-labs/dbt-core/issues/7749
1. Install jq
2. dbt --quiet ls --output json --output-keys tags | jq .tags | jq -s 'add | unique'
@entaroadun
entaroadun / gist:1653794
Created January 21, 2012 20:10
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@Dexterp37
Dexterp37 / simple-use-mamba.ipynb
Created March 20, 2024 10:34
Using Vision Mamba (Vim) for image classification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amboutwe
amboutwe / yoast_seo_sitemap_add_custom_type.php
Last active March 28, 2024 13:42
Filters and example code for Yoast SEO sitemaps
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Create Custom Yoast Sitemap
* Credit: Unknown
* Last Tested: Unknown
*********
* HOW TO USE
* Replace TYPE with your custom type
*/