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
git config credential.helper store | |
git push http://example.com/repo.git | |
Username: <username> | |
Password: <password> | |
[several days later] | |
git push http://example.com/repo.git | |
[your credentials are used automatically] |
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
echo %USERPROFILE% | |
C:\Users\Orest |
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
setx FunnyCatPictures=C:\Users\Daniel\Pictures\Funny Cat Pictures | |
#OR | |
setx FunnyCatPicturesTwo=%USERPROFILE%\Pictures\Funny Cat Pictures 2 | |
#Restart CMD | |
echo %FunnyCatPictures% | |
C:\Users\Daniel\Pictures\Funny Cat Pictures |
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
setx Penguins=C:\Linux | |
setx Penguins=C:\Windows;%Penguins% | |
echo %Penguins% | |
C:\Windows;C:\Linux |
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
templates/ | |
├───login.html | |
└───feed.html | |
app/ | |
├───app.js | |
└───controllers/ | |
├───LoginController.js | |
└───FeedController.js | |
directives/ | |
└───FeedEntryDirective.js |
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
app/ | |
├───app.js | |
└───Feed/ | |
├───feed.html | |
├───FeedController.js | |
├───FeedEntryDirective.js | |
└───FeedService.js | |
Login/ | |
├───_login.html | |
├───LoginController.js |
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
'use strict'; | |
let app = angular.module('app',[]); | |
app.service('MyService', function(){ | |
//service code | |
}); | |
app.controller('MyCtrl', function($scope, MyService){ | |
//controller code | |
}); |
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
'use strict'; | |
let services = angular.module('services',[]); | |
services.service('MyService', function(){ | |
//service code | |
}); | |
let controllers = angular.module('controllers', ['services']); | |
controllers.controller('MyCtrl', function($scope, MyService){ | |
//controller code | |
}); |
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
'use strict'; | |
let sharedServicesModule = angular.module('sharedServices',[]); | |
sharedServices.service('NetworkService', function($http){}); | |
let loginModule = angular.module('login', ['sharedServices']); | |
loginModule.service('loginService', function(NetworkService){}); | |
loginModule.controller('loginCtrl', function($scope, loginService){}); | |
let app = angular.module('app', ['sharedServices', 'login']); |
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
'use strict'; | |
let app = angular.module('app',[]); | |
app.controller('MainCtrl', function($scope, $timeout) { //MainCtrl has dependency on $scope and $timeout | |
$timeout(function(){ | |
console.log($scope); | |
}, ); | |
}); | |
//And code after minification: |
OlderNewer