2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number
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
| <!doctype html> | |
| <html><head><script src="app.js"></script></head><body></body></html> |
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 { getRepository, InsertResult } from "typeorm"; | |
| /** | |
| * Upsert for TypeORM on PostgreSQL | |
| * Returns InsertResult object (contains ID) | |
| * @param repo Repository | |
| * @param {object | object[]} data Data to upsert. Can be object or array | |
| * @param {string} primaryKey Name of column that is primary key | |
| * @returns {Promise<InsertResult>} | |
| */ |
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
| /* middleware может принимать любое количество аргументов любых типов */ | |
| const middleware = (...args) => { | |
| const [event, ...data] = args; | |
| if (event.error) { | |
| /* поймали объект экземпляр Error */ | |
| return event.error; | |
| } | |
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
| /* учитывайте, что глобальный метод window.onerror | |
| не будет ловить исключения без Vue.config.errorHandler */ | |
| Vue.config.errorHandler = (error, vm, info) => { | |
| return middlewareErrorHandler(error, info); | |
| } | |
| // сюда попадут все ошибки, которые находятся за пределами исполнения Vue | |
| window.onerror = ( | |
| message, |
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
| var restify = require('restify') | |
| , port = process.env.PORT || 3000 | |
| , Phantom = require('phantom') | |
| , tmpdir = require('os').tmpdir() | |
| , fs = require('fs'); | |
| var server = restify.createServer(); | |
| function setResponseHeaders(res, filename) { | |
| res.header('Content-disposition', 'inline; filename=' + filename); |
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
| FROM r-base:latest | |
| COPY . /usr/local/src/myscripts | |
| WORKDIR /usr/local/src/myscripts | |
| CMD ["Rscript", "myscript.R"] |
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
| export interface IFacadeObject { | |
| [key: string]: any; | |
| } | |
| export interface IFacadeResponse { | |
| objects: IFacadeObject[]; | |
| size: { | |
| height: number; | |
| width: number; | |
| }; |
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
| class WebElement { | |
| public x: number; | |
| public y: number; | |
| // More code here | |
| } | |
| class EditorPaneElement { | |
| public static getHumanReadableCoordinates(element: WebElement) { | |
| return `[x:${element.x},y:${element.y}]`; | |
| } |

