Skip to content

Instantly share code, notes, and snippets.

@DenimTornado
DenimTornado / script.js
Last active Jan 9, 2019
Tampermonkey fifarenderz.com stats
View script.js
// ==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 Nov 15, 2018
Lua script for fm stats
View gg_script.lua
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 Jun 8, 2018
Stats parser for FM New scheme
View stats_parse3.txt
// ==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 Jun 8, 2018
Stats parser for FM + generate
View stats_parser2.txt
// ==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==
View stats_parser.txt
// ==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
Convert comments list into nested object with Array.reduce
View script.js
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
Convert comments list into nested object with for
View script.js
const comments2 = [
{
id: 1,
text: 'Комментарий 1',
parent_id: 0,
},
{
id: 12,
text: 'Комментарий 12',
parent_id: 3,
View components.actions-test.js
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
testAction() {
alert('Enter pressed');
},
testAction2() {
alert('Second Enter pressed');
}
View base64ED.js
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 Sep 24, 2015
Colorised every third day in Superjob.ru calendar in 2015
View gist:0596375b4c2e9def372d
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},
You can’t perform that action at this time.