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
| // ==UserScript== | |
| // @name eductiveGrub | |
| // @description Grub educative course | |
| // @author Jem Jem | |
| // @license MIT | |
| // @version 1.0 | |
| // @include https://www.educative.io/courses/* | |
| // @include https://www.educative.io/module/* | |
| // ==/UserScript== | |
| (async function (window, undefined) { // [2] нормализуем window |
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 scroll(prevlast){ | |
| let els = document.querySelectorAll('.wo9IH'); | |
| let last = els[els.length -1] | |
| if(last != prevlast) { | |
| last.scrollIntoView(); | |
| prevlast = last; | |
| setTimeout(function(){scroll(prevlast)},2000) | |
| } | |
| } |
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 webpack = require('webpack'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const CompressionPlugin = require('compression-webpack-plugin'); | |
| const ManifestPlugin = require('webpack-manifest-plugin'); | |
| const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
| function webpackProductionConfigBuilder(options) { | |
| options = options || {}; | |
| const extractMainCSS = new ExtractTextPlugin(options.extractMainCSS || '[name].[hash].css'); //This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. () | |
| const extractIconsCSS = new ExtractTextPlugin(options.extractIconsCSS || '[name]-icons.[hash].css'); |
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
| //dev | |
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
| const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); | |
| module.exports = { | |
| devtool: 'inline-eval-source-map', |
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
| //base | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| const QUERY = { | |
| name: '[name].[hash].[ext]' | |
| }; |
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 mousePressed() { | |
| saveFrames('out', 'png', 1, 25, function(data) { | |
| var img = document.createElement('img'); | |
| img.src = data[1].imageData; | |
| document.body.appendChild(img); | |
| }); | |
| } |
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
| logoutput: stderr | |
| internal: eth0 port = 1080 | |
| external: eth0 | |
| socksmethod: username | |
| user.privileged: root | |
| user.unprivileged: nobody | |
| user.libwrap: nobody | |
| client pass { |
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(){ | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" | |
| document.head.appendChild(script); | |
| var imageCounter = 0; | |
| function getLinkFromHeader(item){ |
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
| #!/bin/bash | |
| #FileName | |
| FileName=$1 | |
| #Start time | |
| echo "Введите начальное время" | |
| read StTime | |
| #Length of video | |
| echo "Введите продолжительность" | |
| read LenV |
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
| echo "Введите rate раскадровки" | |
| read VideoRate | |
| echo "Введите ширину новых изображений" | |
| read WIDTH | |
| echo "Введите rate для gif" | |
| read GIfrate | |
| Filename=$1; | |
| DestName='resized_im'; | |
| VideoImages='frames'; |