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
.slide-animation.ng-enter, .slide-animation.ng-leave { | |
-webkit-transition: 0.5s linear all; | |
-moz-transition: 0.5s linear all; | |
-o-transition: 0.5s linear all; | |
transition: 0.5s linear all; | |
position:relative; | |
height: 1000px; | |
} | |
.slide-animation.ng-enter { |
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 exec = require('child_process').exec; | |
function puts(error, stdout, stderr) { | |
console.log(stdout); | |
} | |
console.log("Pushing compiled files to gh-pages"); | |
exec("git add dist",puts); | |
exec("git commit -m 'Push dist subtree'",puts); | |
exec("git subtree push --prefix dist origin gh-pages",puts); |
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('fs'); | |
fs.readFile(__dirname +'/name.txt',function(err,data){ | |
if(err){ | |
console.log("There is an error"); | |
return; | |
} | |
var names = data.toString().split('\n'); | |
var name = names[Math.floor(Math.random() * names.length)]; | |
console.log(name); |
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
{ | |
"name": "fake-name", | |
"version": "1.0.0", | |
"description": "A Node.js library to create fake data for you.", | |
"main": "fake-name.js", | |
"bin":{ | |
"faker":"fake-name.js" | |
}, | |
"scripts": { | |
"test": "mocha test" |
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
{ | |
"name": "es6-tutorial", | |
"version": "1.0.0", | |
"description": "es6 features ", | |
"main": "app.js", | |
"scripts": { | |
"start":"jspm-server", | |
"test": "karma test" | |
}, | |
"jspm": { |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<title>Es6 tutorial</title> | |
<script src="./jspm_packages/system.js" type="text/javascript"></script> | |
<script src="./config.js" type="text/javascript"></script> | |
</head> |
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 lang = "php"; | |
for(;true;){ | |
var lang = "js"; | |
console.log(lang); //expect js | |
break; | |
} | |
console.log(lang); //expect php |
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
"use strict"; | |
let lang = "php"; | |
for(;true;){ | |
let lang = "js"; | |
console.log(lang); //expect js | |
break; | |
} | |
console.log(lang); //expect php |
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
"use strict"; | |
const PI = 3.41; | |
PI = 2.3; |
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
"use strict"; | |
class Person{ | |
/** | |
* initiate anythin you want here | |
*/ | |
constructor(){ | |
this._name = 'aravind'; | |
this._age = '25'; | |
} | |
/** |
OlderNewer