Skip to content

Instantly share code, notes, and snippets.

View Mara-Li's full-sized avatar
😽
Got a new job!

Lisandra Mara-Li

😽
Got a new job!
  • Lyon (France)
  • 00:33 (UTC +01:00)
  • X @Mara__Li
View GitHub Profile
@chuckharmston
chuckharmston / snippet.css
Last active April 15, 2024 02:51
Obsidian: Floating sidebar tabs
/* @settings
name: Floating Sidebar Tabs
id: floating-tabs
settings:
-
id: floating-sidebar-tabs
title: Enable
description: Enables floating sidebar tabs.
type: class-toggle
@Fevol
Fevol / settings.ts
Created November 30, 2022 13:48
Tabulated settings page
export class SampleSettingTab extends PluginSettingTab {
plugin: MyPlugin;
settingsPage: HTMLElement;
YOUR_TABS = {
'first-tab-id': {
name: 'First tab',
icon: 'coffee',
},
'second-tab-id': {
@sailKiteV
sailKiteV / Obsidian_KCCuJa4T0o.gif
Last active April 21, 2023 14:04
A rather inelegant—but functional!—attempt at providing a callout-based, pure CSS implementation of in-leaf tabs for Obsidian.md
Obsidian_KCCuJa4T0o.gif
@nothingislost
nothingislost / docked-obsidian-settings.css
Last active March 5, 2023 21:22
Docked Obsidian Settings
body {
display: flex;
}
.modal-container {
position: relative;
visibility: hidden;
justify-content: flex-end;
width: auto;
}
@BlueSkunka
BlueSkunka / chartjs-discordjs.js
Created December 30, 2021 15:26
Generate Chart.js graph and reply with discord bot with graph as embed message
const { SlashCommandBuilder } = require("@discordjs/builders");
const rp = require("request-promise");
const { MessageEmbed, MessageAttachment } = require("discord.js");
const { ChartJSNodeCanvas } = require("chartjs-node-canvas");
let chartEmbed = {};
// This function will return MessageAttachment object from discord.js
// Pass as much parameter as you need
const generateCanva = async (labels, datas) => {
const renderer = new ChartJSNodeCanvas({ width: 800, height: 300 });
@chhoumann
chhoumann / MetaEdit.js
Last active November 5, 2024 00:12
Quick edit for YAML properties and Dataview inline fields
<%*
/*
# MetaEdit
Made by Christian B. B. Houmann
Discord: Chhrriissyy#6548
Twitter: [https://twitter.com/chrisbbh](https://twitter.com/chrisbbh)
Feel free to @ me if you have any questions.
Link to Gist: [Quick edit for YAML properties and Dataview inline fields · GitHub](https://gist.github.com/chhoumann/2a90b203a4faaa35971a83f9e7f29d99)
Use that to check for updates. :)
@MeguminSama
MeguminSama / Discord Experiments.js
Last active November 4, 2024 14:23
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@damc-dev
damc-dev / runBashScript.bat
Last active September 27, 2024 10:08
Execute Bash Script (Using Git Bash) from Windows Task Scheduler
cmd /c ""C:\Program Files (x86)\Git\bin\bash.exe" --login -i -- H:\Daily_Reports\yesterdayTogglReport.sh"