Skip to content

Instantly share code, notes, and snippets.

View aleksandrzak-rafal's full-sized avatar

devstroops aleksandrzak-rafal

View GitHub Profile
@ddluc
ddluc / app.js
Last active March 20, 2018 11:42
OOP in AngularJS
/**
* OOP in AngularJS
*
* The following implements some pseudo code for a Video Blog Application using both AngularJS'
* Dependency Injection and 'Classical' Javascript Prototypal Inheritance.
*
* Recently I've decided to use a more 'Classical' Javascript design pattern. My reasoning for this
* decision was based mostly on 2 factors:
*
* 1. Using classes allows you to create code that is reusable and DRY. This is especially helpful
@cdhunt
cdhunt / Get-CredentialFromWindowsCredentialManager.ps1
Last active September 4, 2024 19:46 — forked from toburger/Get-CredentialFromWindowsCredentialManager.ps1
Gets a PowerShell Credential [PSCredential] from the Windows Credential Manager. This only works for Generic Credentials.
<#
.SYNOPSIS
Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager
.DESCRIPTION
This module will return a [PSCredential] object from a credential stored in Windows Credential Manager. The
Get-StoredCredential function can only access Generic Credentials.
Alias: GSC
@mourner
mourner / TileLayer.Common.js
Created February 11, 2012 23:11
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {