Skip to content

Instantly share code, notes, and snippets.

View jculverwell's full-sized avatar

Jim Culverwell jculverwell

View GitHub Profile
var app = angular.module('myApp', []);
app.directive('jqShowEffect', ['$timeout', function($timeout) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
// configure options
var passedOptions = scope.$eval(attrs.jqOptions);
// defaults
var options = {
@tombowers
tombowers / delete-with-select.cs
Last active March 8, 2023 04:32
Entity Framework - Update without Select
var id = 1;
using (var db = new entityContext())
{
// Select entity
var entity = db.dbset.FirstOrDefault(e => e.ID == id);
if (entity != null)
{
// Remove Entity
db.dbset.Remove(entity);
db.SaveChanges();
@cwoolum
cwoolum / cluster.tf
Last active June 5, 2023 12:11
AKS Cluster with Managed Identity and an ACR
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West US 2"
}
data "azurerm_client_config" "current" {
}
resource "azurerm_kubernetes_cluster" "example" {
name = "example-aks1"