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
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI. | |
Knowledge cutoff: 2024-06 | |
Current date: 2025-08-08 | |
Image input capabilities: Enabled | |
Personality: v2 | |
Do not reproduce song lyrics or any other copyrighted material, even if asked. | |
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor. | |
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively. | |
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth. |
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 | |
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır. | |
# UNIX Sistemler için SSTPC Bağlantı Aracı | |
# ? Renk tanımlamaları | |
NC='\033[0m' # * No Color | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' |
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
# install docker | |
``` | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
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
import React from 'react' | |
import Button from 'react-bootstrap/Button'; | |
import * as FileSaver from 'file-saver'; | |
import * as XLSX from 'xlsx'; | |
export const ExportCSV = ({csvData, fileName}) => { | |
const fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8'; | |
const fileExtension = '.xlsx'; |
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
def get_projects_data(self,data_json,projects): | |
projects_data = {} | |
for p in projects: | |
if p!="Name" and p !="Date": | |
projects_data[p] = [data_json["results"][i]["properties"][p]["checkbox"] | |
for i in range(len(data_json["results"]))] | |
elif p=="Date": | |
dates = [data_json["results"][i]["properties"]["Date"]["date"]["start"] | |
for i in range(len(data_json["results"]))] |
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
#include <iostream> | |
using namespace std; | |
/** | |
* Tek yonlu liste tanimi | |
*/ | |
struct Node { | |
int data; |
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
#include <stdio.h> | |
int findMin(int arr[], int n) | |
{ | |
int min = arr[0]; | |
for (int i = 1; i < n; ++i) { | |
if (arr[i] < min) { | |
min = arr[i]; | |
} | |
} |
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 | |
conf_path="/etc/nginx/conf.d/$1.conf" | |
if [ -f "$conf_path" ] | |
then | |
conf_text=`cat $conf_path` | |
if [[ "$conf_text" == *"$2"* ]] || [[ "$conf_text" == *"localhost:$3"* ]] | |
then | |
echo "Proxy route or localhost port has been used, please manually reconfigure your Nginx configuration." | |
else |
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
import nest_asyncio | |
nest_asyncio.apply() |
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
/* perfect.c: find all perfect numbers up to a bound */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <pthread.h> | |
#include <assert.h> | |
int num_perfect_global = 0; // global number of perfect numbers | |
int * local_perfects; // local total of perfect nums |
NewerOlder