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 tweepy | |
consumer_key = '' | |
consumer_secret = '' | |
access_token = '' | |
access_token_secret = '' | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
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 subprocess as sp | |
import requests | |
import os | |
import sys | |
import tty, termios | |
import _thread | |
import time | |
from bs4 import BeautifulSoup | |
class Translate(): |
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
global _start | |
section .text | |
_start: | |
mov rax, 1 | |
mov rdi, 1 | |
mov rsi, hello_world | |
mov rdx, length |
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 android.app.Dialog | |
import android.content.Context | |
import android.content.DialogInterface | |
import android.os.Bundle | |
import android.widget.EditText | |
import androidx.appcompat.app.AlertDialog | |
import androidx.fragment.app.DialogFragment | |
class CustomDialog : DialogFragment() { | |
private lateinit var callback: Callback |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<EditText | |
android:id="@+id/usernameEditText" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:padding="16dp" | |
android:hint="Username" /> |
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 androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.widget.TextView | |
class MainActivity : AppCompatActivity(), CustomDialog.Callback { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
val customDialog: CustomDialog = CustomDialog() | |
customDialog.show(supportFragmentManager, "CUSTOM_DIALOG") |
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 numpy as np | |
import cv2 | |
def interpolate(window_name, interpolation): | |
image = np.array([[100, 150, 250], | |
[50, 200, 120], | |
[220, 110, 60]], dtype=np.uint8) | |
cv2.namedWindow('image1', cv2.WINDOW_NORMAL) | |
cv2.imshow("image1", image) |
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 | |
sudo apt install -y libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf libxcb-xrm0 libxcb-xrm-dev automake libxcb-shape0-dev libxcb-xrm-dev git make gcc | |
mkdir tmp | |
cd tmp | |
# clone the repository | |
git clone https://www.github.com/resloved/i3.git | |
cd i3 |
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 numpy as np | |
import cv2 | |
lena_low_contrast = cv2.imread('lena-low-contrast.jpeg', cv2.IMREAD_GRAYSCALE) | |
cv2.imshow('lena low contrast', lena_low_contrast) | |
# k indisine sahip n değeri | |
def number_of_intensities(intensity): | |
""" | |
Resimdeki bir yoğunluk değerinin |
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 cv2 | |
import numpy as np | |
lena_low_contrast = cv2.imread('lena-low-contrast.jpeg', cv2.IMREAD_GRAYSCALE) | |
cv2.imshow('Lena Low Contrast', lena_low_contrast) | |
lena = cv2.equalizeHist(lena_low_contrast) | |
cv2.imshow('Lena', lena) | |
cv2.waitKey(0) |
OlderNewer