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
# https://martowen.com/2018/09/12/refreshing-net-assembly-binding-redirects-in-a-visual-studio-solution/ | |
function Remove-BindingRedirect { | |
param( | |
[parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[object[]] | |
$Project | |
) | |
process { | |
$ProjectDir = Split-Path $Project.FullName | |
$ConfigFileName = $Project.ProjectItems | Where-Object { $_.Name -eq 'web.config' -or $_.Name -eq 'app.config' -or $_.Name -eq 'App.config' -or $_.Name -eq 'App.Master.config' -or $_.Name -eq 'Web.Master.config' } |
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
select | |
'data source=' + @@servername + | |
';initial catalog=' + db_name() + | |
case type_desc | |
when 'WINDOWS_LOGIN' | |
then ';trusted_connection=true;MultipleActiveResultSets=true' | |
else | |
';user id=' + suser_name() + ';password=<<YourPassword>>;' | |
end | |
as ConnectionString |
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
@implementation UITableViewIntoPDF | |
+ (NSData*)pdfDataWithTableView:(UITableView*)tableView { | |
UIGraphicsBeginImageContextWithOptions(tableView.contentSize, NO, 0); | |
[tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] | |
atScrollPosition:UITableViewScrollPositionTop animated:NO]; | |
[tableView.layer renderInContext:UIGraphicsGetCurrentContext()]; | |
int iterationCount = ceil(tableView.contentSize.height / tableView.bounds.size.height); |