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
| 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);" + | |
| "})()"); | |
| } |
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
| function ClickConnect(){ | |
| console.log("Working"); | |
| document.querySelector("colab-toolbar-button#connect").click() | |
| } | |
| setInterval(ClickConnect,10000) |
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
| # 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 |
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
| { | |
| // 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": [ |
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
| 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 |
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
| 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; |
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
| 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() | |
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
| 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); |
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<Servo.h> | |
| Servo servo; | |
| const byte pot_pini = 0; | |
| int pot_deger; | |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| servo.attach(2); | |
| } |
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
| 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); |