Skip to content

Instantly share code, notes, and snippets.

View dj2bee's full-sized avatar

tpohlmann dj2bee

  • Bedburg-Hau, Germany
View GitHub Profile
@definitelynotsoftware
definitelynotsoftware / AngularJS-Windows-Authentication.authentication.js
Last active December 4, 2019 14:31
AngularJS Windows Authentication Service using .NET Web API and Hot Towel template
angular.module('app')
.factory("authentication", ["$http", "$q", "$window", authentication]);
function authentication($http, $q, $window) {
var user;
function login() {
// check if the user already exists for this session
@cjus
cjus / sample-nginx.conf
Last active July 12, 2023 14:59
AngularJS Nginx and html5Mode
server {
server_name yoursite.com;
root /usr/share/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}