Skip to content

Instantly share code, notes, and snippets.

@SqlWaldorf
SqlWaldorf / CreateDiagram.py
Last active April 23, 2024 17:45
This script uses graphviz to create diagrams from a Power BI project
# Code provided "as-is". Use at your own risk
#
# Requires graphviz python package:
# pip install graphviz
#
# Unless you run with the -s option, you must also install the graphviz software from
# https://www.graphviz.org/download/
#
# Basic use: python CreateDiagram.py <path to folder with .SemanticModel>
#
@groue
groue / ObservableState.swift
Last active April 23, 2024 17:44
WithBindable
import SwiftUI
/// Supplies an observable object to a view’s hierarchy.
///
/// The purpose of `WithBindable` is to make it possible to instantiate
/// observable objects from environment values, while keeping the object
/// alive as long as the view is rendered.
///
/// For example:
///
@dishuostec
dishuostec / README.md
Last active April 23, 2024 17:43
每日更新IP段
@brianspiering
brianspiering / install_pyspark_on_m1_mac.md
Created February 24, 2022 20:58
Installation guide to pyspark on M1 Mac

Install Spark

Run all of these commands at the command line (not in a Jupyter Notebook). The command line will have more informative error messages and if we need complete additional steps, we'll get the messages.

Spark is a framework within the Scala programming language. Scala uses the JVM (Java Virtual Machine) so you'll need install Java.

If you use homebrew:

@ride90
ride90 / mongo_cascade_delete.js
Last active April 23, 2024 17:40
How to implement a cascade delete in MongoDB
// equivalent of cascade delete in MongoDB
/**
* Let's assume you have 2 related collections with next data structure.
*
* - `archive`
* {
* "_id" : ObjectId("5ce5138efe985e8424a79304"),
* "type" : "text",
* "headline" : "Curabitur non nulla sit amet nisl tempus convallis quis ac lectus."
@lwsrbrts
lwsrbrts / smart_home_panel.yaml
Created March 26, 2023 12:25
Ecoflow Smart Home Panel YAML configuration for Home Assistant
sensor:
# These should be used in the energy dashboard.
- platform: integration
source: sensor.shp_circuit_1_power
name: SHP Circuit 1 Consumed Energy
unit_prefix: k
round: 3
- platform: integration
source: sensor.shp_circuit_2_power
name: SHP Circuit 2 Consumed Energy
@TheColdPrince
TheColdPrince / WikiFeed - Wikipedia Blogger Template
Last active April 23, 2024 17:39
Wikipedia Blogger Template - Blogger theme with a strong Wiki-style. WikiFeed is suitable for encyclopedic websites. The theme helps you to create an encyclopedia out of your blog! With the help of Blogger, we can now create our own Wikipedia. Code that is easy to use and alter, as well as clean and understandable. WikiFeed is a content-focused …
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:responsive='true' b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='width=device-width, initial-scale=1.0' name='viewport'/>
<!-- Meta Title -->
<meta content='WikiFeed-Blogger' property='og:title'/>
<meta content='WikiFeed-Blogger' property='og:image:alt'/>
<meta content='WikiFeed-Blogger' name='twitter:title'/>
<meta content='WikiFeed-Blogger' name='twitter:image:alt'/>
@cecepm
cecepm / install-meslo-fonts.sh
Created April 12, 2021 01:30
Install Meslo Nerd Font patched for Powerlevel10k
mkdir -p ~/.fonts
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf --output ~/.fonts/'MesloLGS NF Regular.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf --output ~/.fonts/'MesloLGS NF Bold.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf --output ~/.fonts/'MesloLGS NF Italic.ttf'
curl -L https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf --output ~/.fonts/'MesloLGS NF Bold Italic.ttf'
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active April 23, 2024 17:37 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 23, 2024 17:36
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example