Skip to content

Instantly share code, notes, and snippets.

Dorukcan Kişin dorukcan

  • İstanbul
Block or report user

Report or block dorukcan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dorukcan
dorukcan / CSV-Javascript.csv.js
Created Dec 23, 2017
intellij data extractor sqlite to mysql (for timestamps)
View CSV-Javascript.csv.js
function eachWithIdx(iterable, f) {
var i = iterable.iterator();
var idx = 0;
while (i.hasNext()) f(i.next(), idx++);
}
function mapEach(iterable, f) {
var vs = [];
eachWithIdx(iterable, function (i) {
vs.push(f(i));
View c0l0r.js
if (!String.prototype.format) {
String.prototype.format = function () {
var args = arguments;
if (typeof arguments[0] === "object" && arguments.length === 1) {
args = arguments[0];
}
return this.replace(/{(\d+)}/g, function (match, index) {
return typeof args[index] !== 'undefined'
View sqldmp_windows.bat
powershell -noexit -executionpolicy bypass -File C:\wamp64\www\url\sqldmp_windows.ps1
View hosts
151.101.16.193 imgur.com
151.101.16.193 api.imgur.com
151.101.16.193 i.imgur.com
151.101.16.193 m.imgur.com
151.101.16.193 s.imgur.com
104.16.67.203 4chan.org
104.16.67.203 www.4chan.org
104.16.67.203 boards.4chan.org
104.16.111.203 i.4cdn.org
View menu_from_database.js
var arr = d.aNodes;
document.write('<ul>')
getNodes(-1);
document.write('</ul>')
function getNodes(parentId) {
for (var i = 0; i < arr.length; i++) {
if (arr[i].parentid == parentId) {
if (arr[i].url == undefined) {
View colorize_multireddit_page.js
var subs = $(".subreddits a").map(function(){
return $.trim($(this).text());
}).get();
var colors = ["#f3e5f5", "#e8eaf6", "#e3f2fd", "#e0f2f1", "#f1f8e9", "#fff8e1"];
$(".subreddits li").each(function(i, e){
var color = colors[i];
$(this).css("background-color", color);
@dorukcan
dorukcan / sort_elements.js
Last active Jun 18, 2019
sort elements in a block with descending order
View sort_elements.js
var container = document.querySelector('#gwt-debug-logGroupTable tbody');
var items = Array.from(container.querySelectorAll("tr"));
var sortable = (item) => {
var sortKey = new Date(item.querySelector("td:last-child").textContent);
return sortKey.getTime();
};
items = items.sort((a, b) => {return sortable(a) == sortable(b) ? 0 : (sortable(a) < sortable(b) ? 1 : -1)});
container.innerHTML = items.map(item => item.outerHTML).join("");
View pocket_to_pdf.au3
#include <AutoItConstants.au3>
While(1)
;~ yazdır butonu
MouseClick($MOUSE_CLICK_LEFT, 469, 98, 1)
Sleep(1000)
;~ kaydet butonu
MouseClick($MOUSE_CLICK_LEFT, 249, 149, 1)
Sleep(1000)
View dizipub_video.js
// ==UserScript==
// @name Dizipub Video Downloader
// @match http://dizipub.com/*
// @grant none
// ==/UserScript==
if($("#embed-wrapper").length === 0){
return;
}
View yemeksepeti_show_all_restaurants.js
var style = document.createElement('style');
style.innerHTML = ".ys-tabs .panel-body .tab { display: inline-block !important; }";
document.body.appendChild(style);
You can’t perform that action at this time.