NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew updateNOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew update| // Custom Cypress No-Motion helper | |
| // | |
| // To reduce flakiness in Cypress tests caused by motion, | |
| // force disable all CSS transitions and animations. | |
| // | |
| // revised: 2023-03-15 | |
| // credits: @ypresto | |
| function disableMotion(win) { | |
| const injectedStyleEl = win.document.getElementById('__cy_disable_motion__'); |
NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
RAM
---
vm-1 = 1,024 MiB
vm-2 = 2,048 MiB
Total: 3,072 MiB
CPU(s)
------
| import http = require('http') | |
| import https = require('https') | |
| import url = require('url') | |
| import {AxiosInstance, AxiosInterceptorManager} from 'axios' | |
| import {HttpRequestOptions as HttpFollowRequestOptions, http as httpFollow, https as httpsFollow} from 'follow-redirects' | |
| import now = require('performance-now') | |
| import httpAdapter = require('axios/lib/adapters/http') | |
| import InterceptorManager = require('axios/lib/core/InterceptorManager') |
| node{ | |
| timestamps{ | |
| stage('Samples'){ | |
| // Single quotes with no interpolation, at least not in Jenkins. | |
| // The dollar variable will be evaluated before being run by the | |
| // shell command, so variables which Jenkins makes available as | |
| // environment variables can still be accessed from within a | |
| // single-quoted string, passed to the sh task. | |
| sh 'echo $PATH' |
| sudo -H -u www-data git status |
| - (UIImage *)snapshot:(UIView *)view | |
| { | |
| UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0); | |
| [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES]; | |
| UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); | |
| UIGraphicsEndImageContext(); | |
| return image; | |
| } |
| NSString *testedString; | |
| __block NSString *selected; | |
| ((void (^)())@{ | |
| @"A" : ^{ | |
| selected = @"A selected"; | |
| }, |
| /** | |
| * Returns a hash code for a string. | |
| * (Compatible to Java's String.hashCode()) | |
| * | |
| * The hash code for a string object is computed as | |
| * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] | |
| * using number arithmetic, where s[i] is the i th character | |
| * of the given string, n is the length of the string, | |
| * and ^ indicates exponentiation. | |
| * (The hash value of the empty string is zero.) |