This file contains 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
/// <summary> | |
/// Une dos PDF uno detras del otro dependiendo de como los va encontrando | |
/// </summary> | |
/// <param name="targetPDF">La ruta completa del archivo .PDF que se va a crear</param> | |
/// <param name="sourceDir">La ruta del folder que contiene los .PDF a unir</param> | |
public void CreateMergedPDF(string targetPDF, string sourceDir) | |
{ | |
using (FileStream stream = new FileStream(targetPDF, FileMode.Create)) | |
{ | |
Document pdfDoc = new Document(PageSize.A4); |
This file contains 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
public class Configuration | |
{ | |
public Configuration(string _seccion) | |
{ | |
this.Seccion = _seccion; | |
} | |
public string Seccion { get; set; } | |
private List<Parameter> parameters; | |
public List<Parameter> Parameters |
This file contains 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 TABLE_NAME | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_TYPE = 'BASE TABLE' | |
AND TABLE_NAME like '%requisi%' |
This file contains 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
declare @dob2 DATETIME=getdate() | |
select convert(varchar, @dob2, 101)--01/26/2015 | |
select convert(varchar, @dob2, 102)--2015.01.26 | |
select convert(varchar, @dob2, 103)--26/01/2015 | |
select convert(varchar, @dob2, 104)--26.01.2015 | |
select convert(varchar, @dob2, 105)--26-01-2015 | |
select convert(varchar, @dob2, 106)--26 Jan 2015 | |
select convert(varchar, @dob2, 107)--Jan 26, 2015 | |
select convert(varchar, @dob2, 108)--10:52:40 |
This file contains 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
declare @primer_dia datetime | |
declare @ultimo_dia DATETIME | |
DECLARE @ultimo_dia_habil datetime | |
declare @d varchar(2) | |
DECLARE @m varchar(2) | |
DECLARE @a varchar(4) | |
DECLARE @FE varchar(50) | |
DECLARE @FI varchar(50) | |
DECLARE @FN varchar(50) |
This file contains 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
--For SQL Server 2012: | |
DECLARE @ListofIDs TABLE(IDs VARCHAR(100)); | |
INSERT INTO @ListofIDs | |
VALUES('a'),('10'),('20'),('c'),('30'),('d'); | |
SELECT IDs FROM @ListofIDs; | |
GO |
This file contains 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.Windows; | |
using System.Windows.Controls; | |
namespace CustomControl | |
{ | |
public class BindablePasswordBox : Decorator | |
{ | |
/// <summary> | |
/// The password dependency property. | |
/// </summary> |
This file contains 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
/** | |
* Hides the soft keyboard | |
*/ | |
public void hideSoftKeyboard () | |
{ | |
var currentFocus = Activity.CurrentFocus; | |
if (currentFocus != null) { | |
InputMethodManager inputMethodManager = (InputMethodManager)Activity.GetSystemService (Context.InputMethodService); | |
inputMethodManager.HideSoftInputFromWindow (currentFocus.WindowToken, HideSoftInputFlags.None); | |
} |
This file contains 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
public static string UppercaseFirst(string text) | |
{ | |
var s = text.TrimEnd().TrimStart().ToLower(); | |
// Check for empty string. | |
if (string.IsNullOrEmpty(s)) | |
return string.Empty; | |
var arr = s.Split(' '); | |
foreach (var item in arr) | |
s = s.Replace(item, char.ToUpper(item[0]) + item.Substring(1)); |
This file contains 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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
OlderNewer