Skip to content

Instantly share code, notes, and snippets.

View iKlotho's full-sized avatar
🏠
Working from home

Umut Kahriman iKlotho

🏠
Working from home
  • İstanbul, Turkey
View GitHub Profile
@iKlotho
iKlotho / test_init.js
Created October 5, 2018 21:54
test_init.js
var isloading = 0;
var fetchnewcall = 0;
var Test_Init_Val = {
Name: "",Name_Default: "Enter test name here", Name_Fail: 0,Name_Match: '^.*$',
Prefix: "",Prefix_Default: "",Prefix_Fail: 0,Prefix_Match: '^[\\w\\+\\#\\*]*$',
ANI: "",ANI_Default: '',ANI_Fail: 0,ANI_Match: '^[x\\w\\+\\#]*$',
DTMF: "",DTMF_Default: '',DTMF_Fail: 0,DTMF_Match: '^[0-9\\#\\+]*$',
Call_D: "",Call_D_Default: '',Call_D_Fail: 0,Call_D_Match: '^[0-9]*$',
Content: "",Content_Default: '',Content_Fail: 0,Content_Match: '^[\\w:\\<\\>@;=\\- \\.]*$',
Number: "",Number_Default: 'Enter Numbers Here',Number_Fail: 0,Number_Match: '^[\\d\\+\\n,]*$',
@iKlotho
iKlotho / play_recording.js
Last active October 5, 2018 00:04
play_recording.js
var OldMedia = 0;
var AudioBarTimer;
function Audio_Set_Players(id,t,r,c,md) { //
/*
var RBT = '';
if (r == 1) { //RBT is present
RBT = '<li><a href=\"http://repo.i-test.net/au/call-'+id+'-r.mp3\">RBT Audio</a></li>';
ndisp('Audio_Player_RBT_Display','/','direct/d.php?p=d&','','t=162&id='+id+'&type=RBT');
if (t == 'RBT') { window.sm2BarPlayers[0].actions.play(); } //Start Playing Audio
@iKlotho
iKlotho / bar-ui.js
Created October 4, 2018 22:55
bar-ui.js
/*jslint plusplus: true, white: true, nomen: true */
/*global console, document, navigator, soundManager, window */
(function(window) {
/**
* SoundManager 2: "Bar UI" player
* Copyright (c) 2014, Scott Schiller. All rights reserved.
* http://www.schillmania.com/projects/soundmanager2/
* Code provided under BSD license.
@iKlotho
iKlotho / bar-ui.css
Last active February 18, 2019 10:48
bar-ui.css
/**
* SoundManager 2: "Bar UI" player - CSS
* Copyright (c) 2014, Scott Schiller. All rights reserved.
* http://www.schillmania.com/projects/soundmanager2/
* Code provided under BSD license.
* http://schillmania.com/projects/soundmanager2/license.txt
*/
.sm2-bar-ui {
position: relative;
@iKlotho
iKlotho / display.js
Last active October 5, 2018 00:48
display.js
var statusttime = 0;
var statustime;
var messagetime;
highlightiid = 0;
highlighticlass = '';
var scroll = {}
var gstatus = {}
var ReloadSound = 0;
window.onready = function(ev) {
@iKlotho
iKlotho / translator.js
Created November 6, 2017 23:20
greasemonkey translator with double click
// ==UserScript==
// @name clicktrans
// @namespace translator
// @version 1
// @include *://*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
console.log('script runs');
@iKlotho
iKlotho / tr_bokeh.py
Created March 12, 2017 19:42
Choropleths of Turkey with bokeh
shp = open("TUR_adm_shp/TUR_adm1.shp", "rb")
dbf = open('TUR_adm_shp/TUR_adm1.dbf',"rb")
sf = shapefile.Reader(shp=shp,dbf=dbf)
# Munge map data for bokeh
lats = []
lons = []
county = []
state = []
for shprec in sf.shapeRecords():
@iKlotho
iKlotho / hidemyass.py
Last active November 7, 2017 10:59
hidemyass-proxy
#hidemyarse
import requests
import BeautifulSoup as BS
headers = {'User-agent':
'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'}
def find_inline_words(checkraw_word):
inline = []
none = []
if len(checkraw_word) == 2:
@iKlotho
iKlotho / dizist
Created January 14, 2016 13:51
dizist
// ==UserScript==
// @name dizist
// @namespace dizist.net/dizi/
// @version 0.1
// @description try to take over the world!
// @author You
// @match dizist.net/dizi/*
// @grant none
// @require
// ==/UserScript==
@iKlotho
iKlotho / watTv.js
Last active December 25, 2015 22:07
watTv Video Urls
// ==UserScript==
// @name watVideos
// @namespace http://www.wat.tv/video/*
// @description get videos
// @include http://www.wat.tv/video/*
// @exclude http://www.wat.tv/video/*
// @version 1
// @grant none
// ==/UserScript==
var script = document.createElement('script');