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
| const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); | |
| const cheerio = require('cheerio'); | |
| processVin = vin => | |
| fetch(`https://yournewvin.com/check-vin-${vin}-full-report`) | |
| .then(res => res.text()) | |
| .then(html => html) | |
| .then(cheerio.load) | |
| .then($ => ({ | |
| make: $('table tbody tr:nth-child(1) td:nth-child(2)').text(), |
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
| import java.math.BigInteger; | |
| import java.util.Random; | |
| import java.util.HashMap; | |
| class PRFEncryption { | |
| private BigInteger key; | |
| private int length; | |
| public PRFEncryption(int length) { |
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
| /* Paste into your console. Be sure to select "unread" list */ | |
| (() => { | |
| const delay = 100 | |
| document | |
| .querySelectorAll('li.feed_item') | |
| .forEach((li, i) => { | |
| setTimeout(() => P.feed.feedItemClick({ target: li }, li), delay * i) | |
| }) | |
| })() |
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
| /* hold a and click a module to activate */ | |
| const keys = {}; | |
| window.onkeyup = function(e) { keys[e.keyCode] = false; } | |
| window.onkeydown = function(e) { keys[e.keyCode] = true; } | |
| const completeIt = () => { | |
| EF.currentPage.complete(); | |
| } | |
| const goHome = () => { |
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
| /* | |
| Copy and paste this code into the console of your browser. | |
| Make sure the target frame is set to "http://hs.saplinglearning.com/sac/#!/XXXXXXX" | |
| */ | |
| (() => { | |
| let previousState | |
| const attempt = () => { | |
| const state = $('button#button-check').innerText | |
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
| {"lastUpload":"2019-03-31T21:12:41.088Z","extensionVersion":"v3.2.7"} |
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
| (() => { | |
| const stopAllAudio = () => { | |
| API.Audio.soundQueue = new Array(); | |
| API.Audio.callBackQueue = new Array(); | |
| API.Audio.playing = false; | |
| try { | |
| API.Audio.stopAudio(); | |
| } catch (ex) { } |
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
| const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))) | |
| const stripData = obj => obj.data | |
| const assign = child => parent => Object.assign(parent, child) | |
| const arrAssign = (arr, k) => data => data.map((d, i) => assign({[k]: d})(arr[i])) | |
| /* function being tested */ | |
| const insertAndPair = (obj, key1, key2) => compose( | |
| d => assign({ [key1]: arrAssign(obj.slice(-1)[0][key1], key2)(d) })(obj.slice(-1)), | |
| stripData | |
| ) |