Skip to content

Instantly share code, notes, and snippets.

View aattk's full-sized avatar
🦁
Working

Alpaslan Tetik aattk

🦁
Working
View GitHub Profile
webView.setWebViewClient(new WebViewClient(){
@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
webView.loadUrl(
"javascript:(function() { " +
"var element = document.getElementById('hplogo');"
+ "element.parentNode.removeChild(element);" +
"})()");
}
function ClickConnect(){
console.log("Working");
document.querySelector("colab-toolbar-button#connect").click()
}
setInterval(ClickConnect,10000)
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host [Herhangi Bir İsim]
HostName [ip_adresi_kopyaladıgımız]
User [KULLANICI ADI]
IdentityFile C:\\Users\\[your-windows-username]\\[KULLANICI ADI]
ForwardAgent true
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "gcc.exe build active file",
"command": "C:\\Program Files (x86)\\Dev-Cpp\\MinGW64\\bin\\gcc.exe",
"args": [
public static String getCalculatedDate(String dateFormat, int days) {
Calendar cal = Calendar.getInstance();
SimpleDateFormat s = new SimpleDateFormat(dateFormat);
cal.add(Calendar.DAY_OF_YEAR, days);
return s.format(new Date(cal.getTimeInMillis()));
}
getCalculatedDate("dd-MM-yyyy", -10); // It will gives you date before 10 days from current date
getCalculatedDate("dd-MM-yyyy", 10); // It will gives you date after 10 days from current date
module clock(
input wire clk,
output reg divided_clk = 0
);
localparam div_value = 50;
integer counter_value = 0;
always@ (posedge clk)
begin
if(counter_value == div_value) begin
counter_value <= 0;
const int in1 = 7; // Motor sürücümüze bağladığımız pinleri tanımlıyoruz
const int in2 = 6;
const int in3 = 4;
const int in4 = 2;
const int enA = 5; //Enable pinlerini arduino pwm pinlerine bağladık.
const int enB = 3;
void setup()
int buzzerPin = 7;
void setup() {
// put your setup code here, to run once:
pinMode(buzzerPin,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(buzzerPin,HIGH);
delay(2000);
#include<Servo.h>
Servo servo;
const byte pot_pini = 0;
int pot_deger;
void setup()
{
Serial.begin(9600);
servo.attach(2);
}
int trigPin = 3;
int echoPin = 2;
long sure;
long uzaklik;
void setup() {
// put your setup code here, to run once:
pinMode(trigPin,OUTPUT);
pinMode(echoPin,INPUT);