Skip to content

Instantly share code, notes, and snippets.

@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
*/
@stevdza-san
stevdza-san / RequestState.kt
Last active March 28, 2024 13:41
Useful wrapper class for handling the data in Jetpack Compose
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.togetherWith
import androidx.compose.runtime.Composable
sealed class RequestState<out T> {
data object Idle : RequestState<Nothing>()
data object Loading : RequestState<Nothing>()
@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 13:40
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; // ¯\\_(ツ)_/¯
@szemate
szemate / package-lock-conflicts.md
Last active March 28, 2024 13:37
How to resolve package-lock.json conflicts

How to resolve package-lock.json conflicts

It is not possible to resolve conflicts of package-lock.json in GitHub's merge tool and you need to do a manual merge.

  1. Update the master branch with the latest changes:
    git checkout master
    git pull
    
  2. Merge your feature branch into master: