Array.prototype.betterFilter = function(expression) {
var res = [];
for(var idx=0; idx<this.length; idx++){
var currentItem = this[idx];
if(expression(currentItem)){
res.push(currentItem);
}
}
return res;
This file contains hidden or 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
<template> | |
<div class="relative"> | |
<svg :width="radius * 2" :height="radius * 2"> | |
<circle | |
:cx="radius" | |
:cy="radius" | |
:r="innerRadius" | |
:stroke-width="strokeWidth" | |
:stroke-dasharray="dashArray" | |
:transform="transform" |
This file contains hidden or 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 version = "1.13.1 Fixed By Ibra"; | |
var scriptName = "LA Enhancer (1.13.1) - Fixed by Ibra Gonza II"; | |
var scriptURL = "https://scripts.ibragonza.nl/enhancer/"; | |
var updateNotesURL = "https://forum.tribalwars.net/index.php?threads/ntoombs19s-fa-filter.266604/page-15#post-7053294"; | |
var working = true; | |
var resourcesLoaded = false; | |
var scriptLoaded = false; | |
var pagesLoaded = false; | |
var filtersApplied = false; | |
var cansend = true; |
This file contains hidden or 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
{"tgs":1,"v":"5.5.2","fr":60,"ip":0,"op":12,"w":512,"h":512,"nm":"Comp 7","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 11","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[256,256,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[3.875,0]],"o":[[0,0],[-3.875,0]],"v":[[-221,47.625],[-238.625,53.875]],"c":false}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.701960784314,0.047058827269,0.149019607843,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":9},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":true},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Shape 6","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o" |
This file contains hidden or 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
// The mixin | |
const EventBus = new Vue() | |
Vue.mixin({ | |
_EventBusDetachers: [] | |
methods: { | |
attachEventBusListener(eventName, callback) { | |
EventBus.$on(eventName, callback) | |
const detach = () => { | |
EventBus.$off(eventName, callback) | |
} |
This file contains hidden or 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
// polyfill | |
if (!Array.prototype.some) { | |
Array.prototype.some = function(fun, thisArg) { | |
'use strict'; | |
if (this == null) { | |
throw new TypeError('Array.prototype.some called on null or undefined'); | |
} | |
if (typeof fun !== 'function') { |
This file contains hidden or 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
function contentLoaded() { | |
document.addEventListener("stamped:badges:loaded", function() { | |
$(".stamped-badge[data-rating!='0.0']").parent().addClass("has-rating") | |
}) | |
} | |
if (document.readyState === "complete" || document.readyState === "loaded" || document.readyState === "interactive"){ | |
contentLoaded(); | |
} else { | |
window.addEventListener("DOMContentLoaded",contentLoaded); |
This file contains hidden or 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
// smooth scroll | |
var now = window.performance && window.performance.now ? window.performance.now.bind(window.performance): Date.now | |
var SCROLL_TIME = 468 | |
export function smoothScrollTo({ element, y, startY, startTime }) { | |
startTime = startTime || now() | |
var time = now() | |
var elapsed = (time - startTime) / SCROLL_TIME; | |
// avoid elapsed times higher than one |
This file contains hidden or 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
$media-queries: true; | |
@mixin bp($point) { | |
@if ($media-queries) { | |
$bp-large-screen: 1824px; | |
$bp-bigscreen: 1824px; | |
$bp-ipad-max: 1024px; | |
$bp-ipad-min: 768px; | |
$bp-iphone5-max: 568px; | |
$bp-iphone-max: 480px; |
This file contains hidden or 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
----- CREATE KEY -------- | |
ssh-keygen -t rsa | |
ssh user@host mkdir -p .ssh // in case it's not there | |
cat .ssh/id_rsa.pub | ssh user@host 'cat >> .ssh/authorized_keys' | |
------ IN ~/sl.sh ---------- |