app
- makefile.js
- test.js
- test
- app.js
- app1
-- app1.js
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
# Global variables | |
re='^[0-9]+$' | |
jira_name="MINT" | |
# Will create a new branch with name ($1) from master | |
# it will also make sure master is up to date from origin | |
workstartFunc() { | |
if ! [[ $1 =~ $re ]] | |
then | |
val=$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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="./node_modules/mithril/mithril.js"></script> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id = "main"></div> |
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
var glob = require("glob"); | |
var fs = require("fs"); | |
var path = require("path"); | |
var dir = "C:/Users/gs025879/Documents/webstrom/eslint/tests/fixtures/config-hierarchy"; | |
var structure = glob.sync("**/*.*", { | |
cwd: dir, | |
dot: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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.main { | |
border: 1px solid grey; | |
} |
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 babel from 'rollup-plugin-babel'; | |
import less from 'rollup-plugin-less'; | |
import path from "path"; | |
import includePaths from 'rollup-plugin-includepaths'; | |
import nodeResolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import uglify from 'rollup-plugin-uglify'; | |
import { minify } from 'uglify-js'; | |
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
let i = 0; | |
const test = () => new Promise((resolve, reject) => { | |
i++; | |
console.log(`Promise called - ${i}`); | |
if (i === 5) { | |
resolve(); | |
} |
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
var fs = require("chai").assert; | |
var fileContent = "hello"; | |
fs.writeFile("./sample.txt", fileContent, (err) => { | |
if (err) { | |
console.error(err); | |
return; | |
}; | |
console.log("File has been created"); | |
}); | |
// Content of the file -> hello |
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
var fs = require("chai").assert; | |
var sampleObject = { | |
a: 1, | |
b: 2, | |
c: { | |
x: 11, | |
y: 22 | |
} | |
}; | |
fs.writeFile("./object.json", JSON.stringify(sampleObject), (err) => { |
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
var fs = require("chai").assert; | |
var sampleObject = { | |
a: 1, | |
b: 2, | |
c: { | |
x: 11, | |
y: 22 | |
} | |
}; | |
fs.writeFile("./object.json", JSON.stringify(sampleObject, null, 4), (err) => { |
OlderNewer