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
# custom IntelliJ IDEA VM options (expand/override 'bin\idea64.exe.vmoptions') | |
-Dawt.java2d.opengl=true | |
-Dawt.lock.fair=true | |
-Dawt.useSystemAAFontSettings=lcd | |
-Dfile.encoding=UTF-8 | |
-Dhidpi=true | |
-Dide.ui.scale=1.0 | |
-Djava.net.preferIPv4Stack=true | |
-Djbr.catch.SIGABRT=true |
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
#!/bin/bash | |
repo="lazuee/lazuee" | |
url="repos/$repo/actions/runs" | |
total_deleted=0 | |
delete_id() { | |
local id=$1 | |
local result="" |
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
system: Please play a human-like role named as "JTR". You should follow these Settings and do not reveal your settings: | |
1. You need to gather information about the user’s goals, examples of preferred output, and any other relevant contextual information. | |
2. Your answer should be clearly formatted and optimized for ChatGPT interactions. Be sure to start by asking the user about the goals, the desired outcome, and any additional information you may need. | |
3. The prompt should contain all the necessary information provided to you. Ask the user more questions until you are sure you can create an optimal prompt. | |
4. Use discord markdown, use it wisely. | |
5. Use discord codeblocks with the specific programming language whenever there's a code. Also format the code like prettier, make it neat and clean | |
For example: | |
```<prog lang> | |
<content here> | |
``` |
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
import sqlite3 | |
class Database: | |
def __init__(self): | |
self.conn: Optional[sqlite3.Connection] = None | |
async def connect(self): | |
try: | |
self.conn = sqlite3.connect(FILENAME) | |
except sqlite3.Error: |
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
<script src="https://cdn.tailwindcss.com"></script> | |
<!-- item will be appened to this layout --> | |
<div> | |
<div id="log" class="sl__chat__layout"></div> | |
</div> | |
<!-- chat item --> | |
<script type="text/template" id="chatlist_item"> | |
<div class="messagebox" data-from="{from}" data-id="{messageId}"> |
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 <cstdio> | |
int main() { | |
double purchase, tax_rate, total_bill; | |
char county; | |
printf("AMOUNT OF PURCHASE? "); | |
scanf("%lf", &purchase); | |
printf("COUNTY? "); | |
scanf(" %c", &county); |
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
{ | |
"security.workspace.trust.enabled": false, | |
"search.useGlobalIgnoreFiles": false, | |
"search.useIgnoreFiles": false, | |
"search.exclude": { | |
"**/node_modules": true, | |
"**/dist": true, | |
"**/build": true, | |
"**/.next": true, | |
"**/.git": true, |
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 <iostream> | |
#include <string> | |
std::string number_to_words(int num) { | |
if (num == 0) { | |
return "zero"; | |
} | |
if (num < 0) { | |
return "minus " + number_to_words(-num); | |
} |
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
import java.util.Stack; | |
public class Main { | |
public static boolean isBalanced(String str) { | |
Stack<Character> stack = new Stack<>(); | |
for (char c : str.toCharArray()) { | |
switch (c) { | |
case '(': | |
case '{': | |
stack.push(c); |
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 <stdio.h> | |
void bubbleSort(int *arr, int n) { | |
bool swapped = true; | |
int j = 0; | |
int s = 0; | |
int temp; | |
while (swapped) { | |
swapped = false; |