This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Post Notification | |
description: "" | |
mode: restart | |
trigger: | |
- platform: state | |
entity_id: | |
- binary_sensor.z2maqarareed01_contact | |
from: "on" | |
to: "off" | |
for: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
com = checkout master | |
fe = fetch origin | |
bn = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD` | |
rb = rebase | |
rbm = rebase master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var referralsToDelete = duplicateReferrals | |
.GroupBy(r => r.Data.UniqueId) | |
.Where(g => g.Count() > 1) | |
.SelectMany(g => g.OrderBy(r => r.Data.DateInitiatedUtc).Skip(1)); | |
foreach (var referralToDelete in referralsToDelete) | |
{ | |
graphClient.Delete(referralNodeToDelete.Reference, DeleteMode.NodeAndRelationships); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Web.Mvc; | |
using System.Web.Security; | |
using Facebook; | |
using MyFacebookSite3434.Models; | |
namespace MyFacebookSite3434.Controllers | |
{ | |
public class AccountController : Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-StrictMode -Version Latest | |
[Reflection.Assembly]::Load('System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') | Out-Null | |
$PatchedMethod = [System.Web.Configuration.MachineKeySection].GetMethods('NonPublic, Public, Static') | | |
Where-Object { | |
$LastParameter = $_.GetParameters() | Select-Object -Last 1 | |
$_.Name -eq 'EncryptOrDecryptData' -and | |
$LastParameter -ne $null -and | |
$LastParameter.ParameterType -eq [bool] -and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//An Array of dataTables to to them from other controls | |
var dataTables = new Array ( ); | |
function CreateDateTable ( controlID, headers, initialDataSource ) | |
{ | |
//Retrieve Table Properties to pass | |
//from the Parent Control to the rendered Table (DIV) | |
var renderedControl = document.getElementById ( controlID ); | |
var tableCaption = renderedControl.getAttribute ( "_Caption" ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo |