Skip to content

Instantly share code, notes, and snippets.

View yusufusta's full-sized avatar
💪
Hard working

Yusuf Usta yusufusta

💪
Hard working
View GitHub Profile
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>
var kadi;
function sonuc() {
kadi = document.getElementById("kadi").value;
$.getJSON('https://insta-node.herokuapp.com/_validate_username?username=' + kadi, function(data) {
if(data["valid"] == true){
document.getElementById("test").innerHTML = '<font color="green"> Bulunmuyor! </font>';
} else if(kadi === "") {
document.getElementById("test").innerHTML = '<font color="red"> Kullanıcı adı yazın! </font>';
@yusufusta
yusufusta / ffmpeg-compress-mp4
Created August 2, 2019 15:39 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
<?php
$kelime = "online üniversite";
$kelime = str_replace(" ","+",$kelime);
$sayfa = "1";
$eksiurl = "https://eksisozluk.com/?q=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$eksiurl.''.$kelime.'');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
<?php //php 7.0.8
https://tlkur.com/historical/data/USD/TLdaily.json
$time = "1566454080000";
$time2 = str_replace("000","",$time);
$yuzde = 1 - ("5.70" / "5.71" );
if(strstr($yuzde, "-")){
$yuzde2 = substr($yuzde, 0, 6);
@yusufusta
yusufusta / index.html
Created December 15, 2019 08:30
Plyr + hls.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HLS Demo</title>
<link rel="stylesheet" href="https://cdn.plyr.io/1.8.2/plyr.css">
</head>
<body>
<video preload="none" id="player" autoplay controls crossorigin></video>
<script src="https://cdn.plyr.io/1.8.2/plyr.js"></script>
@yusufusta
yusufusta / index.html
Created December 28, 2019 21:20
Simple CodeMirror Sample
<textarea id='editor'>var editor = CodeMirror.fromTextArea(document.getElementById('editor'), {
mode: "javascript",
lineNumbers: true,
});
editor.save()</textarea>
@yusufusta
yusufusta / animated-back-glow.markdown
Created January 27, 2020 16:49
Animated Back Glow
@yusufusta
yusufusta / NamazVakitAPI.php
Last active April 24, 2020 11:46
Basic php script for get Islam prayer time.
<?php
require_once("shd.php");
$il = $_GET["il"];
$kaynak = @file_get_contents("https://www.mynet.com/$il/namaz-vakitleri");
if ($kaynak === false) {
echo json_encode(["0" => "404"]);
}
$str = str_get_html($kaynak);
_ _ _ _ _
_ __ | |__ _ __ | |__ _ _| | | ___| |_
| '_ \| '_ \| '_ \| '_ \| | | | | |/ _ \ __|
| |_) | | | | |_) | |_) | |_| | | | __/ |_
| .__/|_| |_| .__/|_.__/ \__,_|_|_|\___|\__|
|_| |_|
phpbullet - v1.0
{
"version": "1.0.0",
"theme": "green/black",
"recently": {
"combo": ["0","0","0"],
"proxy": ["0","0","0"],
"config": ["0","0","0"]
}
}