Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 struct | |
import time | |
from datetime import datetime, timezone, timedelta | |
import pytz | |
import requests | |
from bs4 import BeautifulSoup | |
import database | |
from helpers import days_between, convert_date |
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 subprocess | |
import platform | |
import requests | |
import threading | |
import os | |
url = "http://bys.marmara.edu.tr/Ogrenci/Ogr0208/SecilenDersler.aspx" | |
payload = {} |
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
from itertools import combinations | |
num_of_courses = 2 # number of courses except mandatory courses | |
# [day, hour] | |
# Monday=1 ... Friday=5 | |
te_courses = [ | |
{'id': 'CSE4057', 'fullName': 'Information Systems Security', 'hours': [[4, 2], [4, 3], [5, 3]]}, | |
{'id': 'CSE4060', 'fullName': 'Principles of Prog. Lang.', 'hours': [[1, 4], [1, 5], [5, 1]]}, | |
{'id': 'CSE4062', 'fullName': 'Introduction to Data Science', 'hours': [[2, 2], [2, 3], [5, 2]]}, |
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 os | |
from bs4 import BeautifulSoup | |
import requests | |
if __name__ == '__main__': | |
words = [ | |
['Word', 'CEFR Level', 'Type', 'Definition Path', 'British MP3', 'British OGG', 'American MP3', 'American OGG']] | |
cache_file = 'page.html' |
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
int butonPin = 8; | |
int potPin = A0; //A0 analog pini pot değişkenine atadık | |
int potdeger; //Kodlarımız içerisinde kullanacağımız potdeger değişkenini oluşturduk | |
int enablePin = 11; | |
int in1Pin = 10; | |
int in2Pin = 9; | |
int state = HIGH; | |
int reading; | |
int previous = LOW; | |
long time = 0; |
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
var pil = navigator.battery || navigator.webkitBattery || navigator.mozBattery; | |
function pilDurumu(pil) { | |
document.getElementById('seviye').innerHTML += ' %' + pil.level * 100; | |
document.getElementById('yuzde').value = pil.level * 100; | |
if (pil.charging === true) { | |
var durum = "Şarj oluyor"; | |
} else { | |
var durum = "Şarjda değil"; | |
} |
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
<script> | |
var loadDeferredStyles = function() { | |
var addStylesNode = document.getElementById("deferred-styles"); | |
var replacement = document.createElement("div"); | |
replacement.innerHTML = addStylesNode.textContent; | |
document.body.appendChild(replacement) | |
addStylesNode.parentElement.removeChild(addStylesNode); | |
}; | |
var raf = requestAnimationFrame || mozRequestAnimationFrame || | |
webkitRequestAnimationFrame || msRequestAnimationFrame; |
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
<noscript id="deferred-styles"> | |
<link rel="stylesheet" type="text/css" href="stil.css"/> | |
</noscript> |
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
/* | |
* Defer Javascript | |
*/ | |
add_filter( 'clean_url', function( $url ) | |
{ | |
if ( FALSE === strpos( $url, '.js' ) ) | |
{ | |
return $url; | |
} | |
return "$url' defer='defer"; |
NewerOlder