Skip to content

Instantly share code, notes, and snippets.

View dorukcan's full-sized avatar

Dorukcan Kişin dorukcan

View GitHub Profile
var COURSES = [
["EC", "101", "09", "N", null],
["TK", "221", "51", "C", null],
["LIT", "211", "02", "N", null],
["MATH", "102", "01", "N", "MATH102 F"],
["PHYS", "102", "01", "N", "PHYS102 F"],
["FA", "48P", "01", "N", "PHYS125 F"],
];
for (i = 0; i < COURSES.length; i++) {
@ECHO OFF
cd %~dp1
ECHO Compiling %~nx1.......
IF EXIST %~n1.class (
DEL %~n1.class
)
javac %~nx1
IF EXIST %~n1.class (
ECHO -----------OUTPUT-----------
java %~n1
@dorukcan
dorukcan / bcp.py
Last active November 6, 2017 10:21
A simple clone of Boun Course Planner
# -*- coding: utf-8 -*-
import datetime
import re
import requests
from bs4 import BeautifulSoup
from sqlalchemy import *
"""
Güney Kampüs
@dorukcan
dorukcan / auto_install_windows_updates.au3
Last active April 20, 2016 14:20
Runs windows update standalone files which have been downloaded by http://www.windowsupdatesdownloader.com/
#include <File.au3>
#RequireAdmin
Local $location = "C:\Users\dorukcan\Documents\Windows Updates Downloader\Non-Security Updates\"
Local $aFileList = _FileListToArray($location, "*")
For $i = 1 To $aFileList[0]
;open file
ShellExecute($location & $aFileList[$i])
ConsoleWrite($i & " " & $aFileList[$i] & @CRLF)
import urllib2, json, sqlite3
from peewee import *
def getSummonerId(name, api_key):
url = "https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/" + name + "?api_key=" + api_key
data = urllib2.urlopen(url).read()
jsonData = json.loads(data)
return jsonData[name.lower()]["id"]
def getMatches(s_id, region, api_key):
//MODULE TRANSFER
var result = [];
jQuery("#system-modules fieldset").each(function() {
jQuery(this).find(".form-checkbox").each(function() {
result.push([jQuery(this).attr("id"), jQuery(this).attr("checked")]);
});
});
console.log(JSON.stringify(result))
values = [];
for (i = 2; i <= 14; i++) {
$.get("https://www.ayrintiyayinlari.com.tr/ucuzlatilmis-kitaplar/s/" + i, function(data) {
var html = $.parseHTML(data);
$(html).find(".span9 .editor .box").appendTo(".span9 .editor>div:eq(0)");
});
}
//---------------------------------------------------------------------------------------------------------------------------
var arr = $(".box").get();
// ==UserScript==
// @name YouSpotify
// @author doruk
// @description Adds a play on spotify button
// @include http://*.youtube.com/watch?*v=*
// @include http://*.youtube.com/watch#!*v=*
// @include http://youtube.com/watch?*v=*
// @include http://youtube.com/watch?v=*
// @include http://youtube.com/watch#!*v=*
// @include http://www.youtube.com/user/*
var style = document.createElement('style');
style.innerHTML = ".ys-tabs .panel-body .tab { display: inline-block !important; }";
document.body.appendChild(style);
// ==UserScript==
// @name Dizipub Video Downloader
// @match http://dizipub.com/*
// @grant none
// ==/UserScript==
if($("#embed-wrapper").length === 0){
return;
}