Skip to content

Instantly share code, notes, and snippets.

View dimpu's full-sized avatar
🏠
Working from home

Dimpu Aravind Buddha dimpu

🏠
Working from home
View GitHub Profile
.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 {
@dimpu
dimpu / deploy to gh-pages
Created October 23, 2015 13:04
deploy to gh-pages
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);
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);
{
"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"
{
"name": "es6-tutorial",
"version": "1.0.0",
"description": "es6 features ",
"main": "app.js",
"scripts": {
"start":"jspm-server",
"test": "karma test"
},
"jspm": {
<!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>
var lang = "php";
for(;true;){
var lang = "js";
console.log(lang); //expect js
break;
}
console.log(lang); //expect php
"use strict";
let lang = "php";
for(;true;){
let lang = "js";
console.log(lang); //expect js
break;
}
console.log(lang); //expect php
"use strict";
const PI = 3.41;
PI = 2.3;
"use strict";
class Person{
/**
* initiate anythin you want here
*/
constructor(){
this._name = 'aravind';
this._age = '25';
}
/**