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:0596375b4c2e9def372d
Last active September 24, 2015 15:25
Colorised every third day in Superjob.ru calendar in 2015
var data = [
{month: 1, reminder: 0},
{month: 2, reminder: 2},
{month: 3, reminder: 1},
{month: 4, reminder: 2},
{month: 5, reminder: 1},
{month: 6, reminder: 2},
{month: 7, reminder: 1},
{month: 8, reminder: 0},
{month: 9, reminder: 1},