Skip to content

Instantly share code, notes, and snippets.

@DenimTornado
DenimTornado / script.js
Last active January 9, 2019 13:45
Tampermonkey fifarenderz.com stats
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / gg_script.lua
Last active November 15, 2018 09:42
Lua script for fm stats
function edit (a, b, c)
gg.clearResults(a)
gg.searchNumber(a, gg.TYPE_DWORD);
gg.searchNumber(b, gg.TYPE_DWORD);
local t = gg.getResults(200)
for i,v in ipairs(t) do
local add = 0
local tr = {}
for j = 1, 45, 1 do
if j == 1 then
@DenimTornado
DenimTornado / stats_parse3.txt
Created June 8, 2018 20:39
Stats parser for FM New scheme
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / stats_parser2.txt
Last active June 8, 2018 12:36
Stats parser for FM + generate
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / stats_parser.txt
Created June 8, 2018 11:36
Stats parser for FM
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / script.js
Created May 15, 2018 11:39
Convert comments list into nested object with Array.reduce
const comments = [
{
id: 1,
text: 'Комментарий 1',
parent_id: 0,
},
{
id: 12,
text: 'Комментарий 12',
parent_id: 3,
@DenimTornado
DenimTornado / script.js
Last active May 15, 2018 11:36
Convert comments list into nested object with for
const comments2 = [
{
id: 1,
text: 'Комментарий 1',
parent_id: 0,
},
{
id: 12,
text: 'Комментарий 12',
parent_id: 3,
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
testAction() {
alert('Enter pressed');
},
testAction2() {
alert('Second Enter pressed');
}
var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function base64Encode(input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = _utf8_encode(input);
while (i < input.length) {
@DenimTornado
DenimTornado / gist:8683708
Last active January 4, 2016 21:49
Safe font-family
font-family: Arial, Helvetica, sans-serif;
font-family: 'Arial Black', Gadget, sans-serif;
font-family: 'Bookman Old Style', serif;
font-family: 'Comic Sans MS', cursive;
font-family: Courier, monospace;
font-family: 'Courier New', Courier, monospace;
font-family: Garamond, serif;
font-family: Georgia, serif;
font-family: Impact, Charcoal, sans-serif;
font-family: 'Lucida Console', Monaco, monospace;