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
module.exports = { | |
endOfLine: 'lf', | |
semi: false, | |
singleQuote: true, | |
tabWidth: 2, | |
printWidth: 80, | |
trailingComma: 'all', | |
jsxBracketSameLine: true, | |
arrowParens: 'always', | |
} |
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
const readline = require('readline'); | |
var ncp = require('copy-paste'); | |
const inputMessage = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); | |
// Promt to enter the string eg. | |
// This ain't your username, is it? |
Sorted from top to down in order of installation
- Node Version Manager
- Yarn
- Snap
- GDebi
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
const inputString = | |
'[ "AND", ["<", "var1", "var2"], [ "OR", [">", "var3", "var4"], ["==", "var5", "var6"] ] ]' | |
let cleanedString = '' | |
for (var i = 0; i < inputString.length; i++) { | |
if ( | |
inputString[i] !== '[' && | |
inputString[i] !== ']' && | |
inputString[i] !== '"' | |
) { |
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
console.log('Extracted all strings from program ', '\n') | |
import * as fs from 'fs' | |
import { sync as globSync } from 'glob' | |
import { sync as mkdirpSync } from 'mkdirp' | |
const filePattern = './build/messages/**/*.json' | |
const outputLanguageDataDir = './build/locales/' | |
console.log('Piping followings ids :') |
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
int ContextCompat.getColor(context, R.color.color_name); |