- Start at default curve.
- Ctrl-click-drag any point in right-half to bend it until a point intersects with desired mhz/voltage.
- Select point and adjust to perfection using shift-up-down.
- Shift-click-drag empty space and select points (including selected point) on the right. Selected point should be left-most point.
- Shift-Enter twice to flatten all points in selection area. They will flatten to match the selected point.
- Adjust if required.
This file contains 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
// 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; // ¯\\_(ツ)_/¯ |
This file contains 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
// | |
// IOSurface_stuff.c | |
// time_waste | |
// | |
// Created by Jake James on 2/22/20. | |
// Copyright © 2020 Jake James. All rights reserved. | |
// | |
#import "IOSurface_stuff.h" |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <pthread/pthread.h> | |
#include <mach/mach.h> | |
struct ool_msg { | |
mach_msg_header_t hdr; | |
mach_msg_body_t body; | |
mach_msg_ool_ports_descriptor_t ool_ports[]; | |
}; |
This file contains 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
/* | |
Author: Le Ngo Duc Manh | |
ModifiedDate: 2024-10-14 | |
Description: This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before analyzing it for toxicity. The Google API key is required to make requests to the Perspective API. The maximum allowed toxicity threshold can be adjusted as needed. | |
*/ | |
const axios = require('axios'); | |
const GOOGLE_API_KEY = "Your Google API Key"; | |
const EMOJIS_REGEX = /<a?:([^:]+):(\d+)>|\p{Emoji_Presentation}|\p{Extended_Pictographic}/gmu; |
Here are some APIs you can use in your Discord bot or any other project. For any help or questions on how to use one, please contact the owner of the API and not me.
A bigger list of APIs can be found at: https://github.com/public-apis/public-apis
[TOKEN] = API requires a token to access some if not all endpoints.
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
This file contains 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
# remove specific file from git cache | |
git rm --cached filename | |
# remove all files from git cache | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
NewerOlder