Skip to content

Instantly share code, notes, and snippets.

View RinorDreshaj's full-sized avatar

Rinor Dreshaj RinorDreshaj

  • GoTo Technologies
  • Lörrach, Germany
  • 08:28 (UTC +02:00)
View GitHub Profile
const response = [{
"id": 342,
"text": "@jetmir99 ckemi si je @rinordreshaj @flospa",
"project_id": 114,
"user_id": 912,
"parent_id": null,
"created_at": "2020-07-17 08:40:02",
"updated_at": "2020-07-17 08:40:02",
"deleted_at": null,
"thx_count": 0,
function repeatTime(time, timeout) {
var k = document.querySelector('video')
setInterval(function() {
k.currentTime = time;
k.play();
}, timeout);
}
@RinorDreshaj
RinorDreshaj / States.json
Created March 14, 2017 14:46
World States with longitude, latitude and short code
[{"short_code":"AD","latitude":"42.546245","longitude":"1.601554","name":"Andorra"},{"short_code":"AE","latitude":"23.424076","longitude":"53.847818","name":"United"},{"short_code":"AF","latitude":"33.93911","longitude":"67.709953","name":"Afghanistan"},{"short_code":"AG","latitude":"17.060816","longitude":"-61.796428","name":"Antigua"},{"short_code":"AI","latitude":"18.220554","longitude":"-63.068615","name":"Anguilla"},{"short_code":"AL","latitude":"41.153332","longitude":"20.168331","name":"Albania"},{"short_code":"AM","latitude":"40.069099","longitude":"45.038189","name":"Armenia"},{"short_code":"AN","latitude":"12.226079","longitude":"-69.060087","name":"Netherlands"},{"short_code":"AO","latitude":"-11.202692","longitude":"17.873887","name":"Angola"},{"short_code":"AQ","latitude":"-75.250973","longitude":"-0.071389","name":"Antarctica"},{"short_code":"AR","latitude":"-38.416097","longitude":"-63.616672","name":"Argentina"},{"short_code":"AS","latitude":"-14.270972","longitude":"-170.132217","name":"Ameri
@RinorDreshaj
RinorDreshaj / States.json
Created March 14, 2017 14:45
World States with longitude, latitude and short code
[{"short_code":"AD","latitude":"42.546245","longitude":"1.601554","name":"Andorra"},{"short_code":"AE","latitude":"23.424076","longitude":"53.847818","name":"United"},{"short_code":"AF","latitude":"33.93911","longitude":"67.709953","name":"Afghanistan"},{"short_code":"AG","latitude":"17.060816","longitude":"-61.796428","name":"Antigua"},{"short_code":"AI","latitude":"18.220554","longitude":"-63.068615","name":"Anguilla"},{"short_code":"AL","latitude":"41.153332","longitude":"20.168331","name":"Albania"},{"short_code":"AM","latitude":"40.069099","longitude":"45.038189","name":"Armenia"},{"short_code":"AN","latitude":"12.226079","longitude":"-69.060087","name":"Netherlands"},{"short_code":"AO","latitude":"-11.202692","longitude":"17.873887","name":"Angola"},{"short_code":"AQ","latitude":"-75.250973","longitude":"-0.071389","name":"Antarctica"},{"short_code":"AR","latitude":"-38.416097","longitude":"-63.616672","name":"Argentina"},{"short_code":"AS","latitude":"-14.270972","longitude":"-170.132217","name":"Ameri
@RinorDreshaj
RinorDreshaj / auto-scroll.js
Created November 19, 2016 08:52
Autoscrolling script
// Download Styler Extension for chrom
// When 1 is pressed the page starts automatically scrolling
// usage: 9gag, reading news
function pageScroll() {
window.scrollBy(0, 1);
scrolldelay = setTimeout(pageScroll,100);
}
@RinorDreshaj
RinorDreshaj / plugins.vim
Created September 15, 2016 12:40
Used plugins on VIm
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
@RinorDreshaj
RinorDreshaj / .vimrc
Created September 15, 2016 12:39
My vimrc file
set nocompatible "We want the latest Vim settings/options
so ~/.vim/plugins.vim "Include plugins for vundle PluginInstall
syntax enable
set backspace=indent,eol,start "Make backspace behave like every other editor
let mapleader=',' "The defaulet leader is \, but comma is much better
set complete=.,w,b,u "Set our desired autocompletion"
@RinorDreshaj
RinorDreshaj / Dynamic forms implementation
Created September 15, 2016 08:13
Dynamic form inputs with VueJs
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.form-row {
border: 1px solid #e2e2e2;
margin: 10px;
padding: 20px;
background: #f2f2f2;
}
@RinorDreshaj
RinorDreshaj / UnlikeFacebookPages.js
Last active March 4, 2021 05:57
A script to remove all Likes from facebook
var likedPages = document.getElementsByClassName("PageLikedButton");
var count = 0;
function unlikePages(){
var liked = likedPages.item(count);
var mouseOverEvent = document.createEvent("MouseEvents");
mouseOverEvent.initEvent("mouseover",true,false);
liked.dispatchEvent(mouseOverEvent);