Skip to content

Instantly share code, notes, and snippets.

@DoubleSlashDesign2
DoubleSlashDesign2 / README.md
Created February 23, 2019 00:34 — forked from JaimeStill/README.md
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugggin in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@DoubleSlashDesign2
DoubleSlashDesign2 / meta-tags.md
Created April 28, 2018 14:16 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@DoubleSlashDesign2
DoubleSlashDesign2 / _readme.md
Created July 9, 2016 17:16 — forked from Shchvova/_readme.md
Planets shader for Corona

#Corona planet shader v0.1#

Alt text

###Instructions###

  1. Download and unpack this gist into folder
  2. Add this assets two images and name them "red.jpg" and "[blue.jpg] (http://i.imgur.com/V3Tw97g.jpg)" in same folder (you will have to download and rename them)
  3. Open project in Corona Simulator 🤘
local function makeGenerator()
local kernel = {
category = "generator",
name = "stars",
isTimeDependent = false
}
kernel.vertexData = {
{
local widget = require( "widget" )
local myList
local myData = {}
myData[1] = { name="Fred", phone="555-555-1234" }
myData[2] = { name="Barney", phone="555-555-1235" }
myData[3] = { name="Wilma", phone="555-555-1236" }
myData[4] = { name="Betty", phone="555-555-1237" }
myData[5] = { name="Pebbles", phone="555-555-1238" }
myData[6] = { name="BamBam", phone="555-555-1239" }
local currentLatitude = 0
local currentLongitude = 0
local updateGps = 5000 -- update Gps every X seconds
local locationHandler = function( event )
-- On update, stop listening to GPS signal to avoid battery draining
Runtime:removeEventListener( "location", locationHandler )
-- Check for error (user may have turned off Location Services)
if event.errorCode then
function print_r ( t )
local print_r_cache={}
local function sub_print_r(t,indent)
if (print_r_cache[tostring(t)]) then
print(indent.."*"..tostring(t))
else
print_r_cache[tostring(t)]=true
if (type(t)=="table") then
for pos,val in pairs(t) do
if (type(val)=="table") then
-- Screen size
local screenW, screenH, halfW, halfH = display.viewableContentWidth, display.viewableContentHeight, display.viewableContentWidth*0.5, display.viewableContentHeight*0.5
-- Grid
numberOfColumns = 16
columnWidth = math.floor( screenW / numberOfColumns )
function getColumnPosition( columnNumber )
return (columnNumber - 1) * columnWidth
end
function getColumnWidth( numberOfColumns )
-- Screen size
local screenW, screenH, halfW, halfH = display.viewableContentWidth, display.viewableContentHeight, display.viewableContentWidth*0.5, display.viewableContentHeight*0.5
-- Grid
numberOfColumns = 16
columnWidth = math.floor( screenW / numberOfColumns )
function getColumnPosition( columnNumber )
return (columnNumber - 1) * columnWidth
end
function getColumnWidth( numberOfColumns )
local animate = function(obj, ref)
if ref then
obj.transitionLoop = ref
end
-- Optional resets:
obj.x = 0
transition.to(obj, {
x = 10,