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
import { css } from 'lit'; | |
var styles = css` | |
.bg-red { | |
background: red; | |
} | |
`; | |
const style = document.createElement('style'); | |
style.textContent = styles.toString(); |
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
git branch -r | cat | grep sandesh | while read i | |
do | |
git push origin --delete $(echo $i | sed 's/\origin\///g') | |
done |
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 fs = require('fs'); | |
const YAML = require('yamljs'); | |
const replaceFirstLineOfFile = require('file-firstline-replace'); | |
const pkgJson = require('../../package.json'); | |
var filename = 'Dockerfile'; | |
var newHeader = `FROM node:${pkgJson.nodeVersionLock} as builder\n`; | |
replaceFirstLineOfFile(filename, newHeader, function (error) { | |
if (error) { | |
throw error; |
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 pkgJson = require('../../package.json'); | |
const nodeVersion = process.versions.node; | |
let err = false; | |
if (pkgJson.nodeVersionLock !== nodeVersion) { | |
console.error(`Please use node ${pkgJson.nodeVersionLock}. Try | |
nvm install v${pkgJson.nodeVersionLock} | |
nvm reinstall-packages v${nodeVersion} | |
nvm uninstall v${nodeVersion} |
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 fs = require('fs').promises; | |
const path = require('path'); | |
const prettyBytes = require('pretty-bytes'); | |
const buildDir = 'build'; | |
const blackListedFiles = ['build/git-log.json']; | |
const blackListedDirs = ['build/report']; | |
const isArrayHas = (arr, str) => { | |
const outOfIndex = -1; |
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
/* | |
A string s contains only uppercase and lowercase letters. | |
Break this list into as many parts as possible | |
so that each letter appears in at most one parts. | |
Return the list of integers which represent the length of each part. | |
*/ | |
function findPairs(str) { | |
var out = []; |
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
type iAdd = (a: number, b: number) => number; | |
const add: iAdd = (a, b) => a + b; | |
add(3, 4); |
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
import React, { useState } from "react"; | |
import "./App.css"; | |
const styles = { | |
InputBox: { | |
padding: 4, | |
}, | |
Error: { | |
color: "red", | |
}, |
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
save-exact=true | |
save=true |
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
image: node:9-alpine | |
stages: | |
- lint_test | |
- build | |
lint_test: | |
stage: lint_test | |
before_script: | |
- echo //registry.npmjs.org/:_authToken=$SYNGENTA_NPM_TOKEN >> ~/.npmrc |
NewerOlder