This file contains 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
# Node.js v8.0.0 - ARMv7l | |
FROM arm32v7/buildpack-deps:jessie | |
RUN groupadd --gid 1000 node \ | |
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node | |
# gpg keys listed at https://github.com/nodejs/node#release-team | |
RUN set -ex \ | |
&& for key in \ | |
9554F04D7259F04124DE6B476D5A82AC7E37093B \ |
This file contains 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 swaggerExtractor = /https?:\/\/(.*)\/.*\/#!\/(.*)\/(.*)/i | |
function getUrlsParts (url) { | |
const [, domain, entity, method] = url.match(swaggerExtractor) | |
return { domain, entity, method } | |
} | |
async function getModels(url) { | |
const { domain, entity, method } = getUrlsParts(url) | |
const req = await fetch(`https://${domain}/api/core/swagger/api-docs/${entity}`) | |
const jsonResponse = await req.json() |
This file contains 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
docker ps -a | grep cache | awk '{print $2}' |
This file contains 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
/** | |
* @module @cool/package | |
*/ | |
import * as _sub from './sub' | |
export const sub: typeof _sub = _sub; |
This file contains 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
[] |
This file contains 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 | |
# This removes a warning from Git to avoid delay | |
export FILTER_BRANCH_SQUELCH_WARNING=1; | |
new_repo=~/dev/ado/blue-workspace | |
mkdir -p "$new_repo" | |
cd "$new_repo" | |
git init |
This file contains 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
// Finds the most impactful CSS statements based on DOM impact | |
const allRules = Array.from(document.styleSheets).map(s => Array.from(s.rules).filter(e => e.selectorText)).flat() | |
const removePseudo = selector => selector.split(',').map(s => s.replace(/::[^ ,]*/g, '').trim()).filter(Boolean).join(', ') | |
const results = allRules.map(r => { | |
// removes the pseudo elements and pseudo classes | |
const impactedNodes = document.querySelectorAll(removePseudo(r.selectorText)).length; | |
return { | |
impactedNodes, |
OlderNewer