CLICK ME
yes, even hidden code blocks!
print("hello world!")| const fs = require('fs'); | |
| const path = require('path'); | |
| const { JSDOM } = require('jsdom'); | |
| // Function to convert HTML content to JSON | |
| function htmlToJson(htmlContent) { | |
| const dom = new JSDOM(htmlContent); | |
| const document = dom.window.document; | |
| // Extract messages |
| for f in ./*.JPG ; do recoverjpeg -m 100m -o ./fixed/ -f ${f%.JPG}.JPG ${f%.JPG}.JPG ; done |
| const path = require('path') | |
| const { promisify } = require('util') | |
| const CDP = require('chrome-remote-interface') | |
| const debug = require('debug')('cypress:server:protocol') | |
| const rimraf = promisify(require('rimraf')) | |
| let port = 0 | |
| let client = null | |
| module.exports = (on, config) => { |
| module UnionScopeConcern | |
| extend ActiveSupport::Concern | |
| class_methods do | |
| def union_scope(*scopes) | |
| scopes[1..-1].inject(where(id: scopes.first)) { |all, scope| all.or(where(id: scope)) } | |
| end | |
| end | |
| end |
| class ApplicationPolicy < ActionPolicy::Base | |
| scope_matcher :action_controller_params, Types::Base::InputObject | |
| class ParamsFilter < ActionController::Parameters | |
| include ActionPolicy::Behaviour | |
| include ActionPolicy::Behaviours::ThreadMemoized | |
| include ActionPolicy::Behaviours::Memoized | |
| include ActionPolicy::Behaviours::Namespaced | |
| attr_accessor :user, :record, :attributes, :parent, :root |
| require 'json' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| GPX = <<-GPX | |
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <gpx | |
| xmlns="http://www.topografix.com/GPX/1/1" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" |
| require 'json' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| GPX = <<-GPX | |
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <gpx | |
| xmlns="http://www.topografix.com/GPX/1/1" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" |
| [{"id":4,"folder":"music\/\u041c\u043e\u043a\u0440\u043e\u0443\u0441\u043e\u0432","filename":"\u0410\u0445, \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u043d\u0443\u0442\u044c\u0441\u044f \u0420 \u041c\u043e\u043a\u0440\u043e\u0443\u0441\u043e\u0432 \u0415 \u0417\u044f\u0442\u0435\u0432\u0430.mp3","name":"\u0420\u043e\u043c\u0430\u043d \u041c\u043e\u043a\u0440\u043e\u0443\u0441\u043e\u0432 \u0438 \u0415\u043a\u0430\u0442\u0435\u0440\u0438\u043d\u0430 \u0417\u044f\u0442\u0435\u0432\u0430 - \u0410\u0445, \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u043d\u0443\u0442\u044c\u0441\u044f","artist":"\u0420\u043e\u043c\u0430\u043d \u041c\u043e\u043a\u0440\u043e\u0443\u0441\u043e\u0432 \u0438 \u0415\u043a\u0430\u0442\u0435\u0440\u0438\u043d\u0430 \u0417\u044f\u0442\u0435\u0432\u0430","title":"\u0410\u0445, \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u043d\u0443\u0442\u044c\u0441\u044f","genre |