https://github.com/peterlamar/python-cp-cheatsheet?tab=readme-ov-file#algorithms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"profiles": [ | |
{ | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": true, | |
"identifiers": { | |
"is_keyboard": true, | |
"product_id": 256, | |
"vendor_id": 2131 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .cursorrules | |
# Development Steps for CLI Application in Go | |
## 1. Overall Design | |
- Define the purpose and scope of the CLI application. | |
- Identify the target audience and their needs. | |
- Outline the main features and functionalities. | |
- Create a high-level architecture diagram. | |
- **Improve Specifications/Features:** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# You need to install annict-epgstation-connector first. | |
# $ brew tap musaprg/tap | |
# $ brew install annict-epgstation-connector | |
ANNICT_API_TOKEN=put-your-annict-token-here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miscord-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const heap = std.heap; | |
const http = std.http; | |
const Uri = std.Uri; | |
const debug = std.debug; | |
pub fn main() anyerror!void { | |
var arena = heap.ArenaAllocator.init(std.heap.page_allocator); | |
defer arena.deinit(); | |
const allocator = arena.allocator(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Client, Intents } = require('discord.js'); | |
/** | |
* Handler that will be called during the execution of a PostLogin flow. | |
* | |
* @param {Event} event - Details about the user and the context in which they are logging in. | |
* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. | |
*/ | |
exports.onExecutePostLogin = async (event, api) => { | |
const identities = event.user.identities.filter((v) => { return v.connection == "discord"; }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const os = std.os; | |
const fs = std.fs; | |
const fmt = std.fmt; | |
const heap = std.heap; | |
const ArenaAllocator = heap.ArenaAllocator; | |
const linux = os.linux; | |
const print = std.debug.print; | |
// no interface natively in zig for now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const os = std.os; | |
const linux = os.linux; | |
const print = std.debug.print; | |
fn parent(_: usize) !void { | |
os.exit(0); | |
} | |
fn child() !void { |
NewerOlder