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 <cstdint> | |
#include <iostream> | |
#if defined(__linux__) | |
#include <sys/resource.h> | |
#elif defined(__APPLE__) && defined(__MACH__) | |
#include <mach/mach.h> | |
#elif defined(_WIN32) | |
#include <windows.h> | |
#include <psapi.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
{ | |
"align-content": { | |
"moz": false, | |
"webkit": true, | |
"syntax": "(stretch)|(center)|(flex-start)|(flex-end)|(space-between)|(space-around)|(initial)|(inherit)", | |
"initial": "stretch", | |
"values": [ | |
"stretch", | |
"center", | |
"flex-start", |
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 | |
# Belirlenen dizin | |
DIRECTORY="/path/to/directory" | |
# Bugünün tarihi | |
DATE=$(date +"%Y%m%d") | |
# Tüm .git klasörlerinin listesi | |
GIT_DIRS=$(find "$DIRECTORY" -type d -name ".git") |
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 <chrono> | |
#include <map> | |
struct PerformanceTracker { | |
std::chrono::steady_clock::time_point start; | |
std::chrono::steady_clock::time_point end; | |
}; | |
class PerformanceLogger { | |
public: |
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/env sh | |
disable_suggestions() { | |
if [ -d "$1" ]; then | |
pushd "$1" || return | |
find . -name com.apple.suggestions.plist \ | |
-exec echo {} \; \ | |
-exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} \; | |
popd || return | |
fi |
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
// Yorum blokları ve satır yorumlarını almak için ifade | |
// örnek1 : | |
// /** | |
// Bu bir blok yorumdur | |
// */ | |
// Örnek2 : | |
// Bu bir satır yorumdur |
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
type User struct { | |
ID int64 `gorm:"primary_key;auto_increment" json:"id"` | |
NickName string `gorm:"size:255;not null;unique" db:"nick_name" json:"nickName"` | |
Avatar string `gorm:"size:255;unique" db:"avatar" json:"avatar"` | |
Name string `gorm:"size:255;not null" json:"name"` | |
LastName string `gorm:"size:255;not null" db:"last_name" json:"lastName"` | |
Phone string `gorm:"size:16;not null;unique" json:"phone"` | |
RememberToken string `gorm:"size:255;not null" db:"remember_token" json:"rememberToken"` | |
Email string `gorm:"size:100;not null;unique" json:"email"` | |
Password string `gorm:"size:100;not null;" json:"password"` |
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 React, {useEffect, useState} from 'react'; | |
import {Snackbar} from 'react-native-paper'; | |
const GlobalSnackbar = () => { | |
const [state, setBaseState] = useState({ | |
visible: false, | |
action: null, | |
message: '', | |
duration: 3000, | |
style: null, |
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
const uploadFile = files => { | |
const headers = new Headers(); | |
// headers.append('Accept', 'application/json'); | |
headers.append('Content-Type', 'multipart/form-data'); | |
headers.append( | |
'Authorization', | |
'XPHBO4yPFDeXv-1FfqBIiOGwtvkSFH71Nmi-Hye0QQQ=', | |
); | |
let uploadFunctions = async file => { | |
let {uri, type: mimeType, fileName} = file; |
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
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + && find . -name "Pods" -type d -prune -exec rm -rf '{}' + && find . -name "build" -type d -prune -exec rm -rf '{}' + |
NewerOlder