Skip to content

Instantly share code, notes, and snippets.

View qetr1ck-op's full-sized avatar
💫

Orest Prystayko qetr1ck-op

💫
View GitHub Profile
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]
echo %USERPROFILE%
C:\Users\Orest
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
setx Penguins=C:\Linux
setx Penguins=C:\Windows;%Penguins%
echo %Penguins%
C:\Windows;C:\Linux
templates/
├───login.html
└───feed.html
app/
├───app.js
└───controllers/
├───LoginController.js
└───FeedController.js
directives/
└───FeedEntryDirective.js
app/
├───app.js
└───Feed/
├───feed.html
├───FeedController.js
├───FeedEntryDirective.js
└───FeedService.js
Login/
├───_login.html
├───LoginController.js
'use strict';
let app = angular.module('app',[]);
app.service('MyService', function(){
//service code
});
app.controller('MyCtrl', function($scope, MyService){
//controller code
});
'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
});
'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']);
'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: