I hereby claim:
- I am pachecoder on github.
- I am pachecogeorge (https://keybase.io/pachecogeorge) on keybase.
- I have a public key whose fingerprint is D4D1 355D A107 4FE1 08EF 2A91 FA95 2217 7BC4 8915
To claim this, I am signing this object:
protected override void fillParametersDinamically(System.Data.IDbCommand com, Object[] args) | |
{ | |
for (int i = 1; i < com.Parameters.Count; i++) | |
{ | |
var p = (System.Data.SqlClient.SqlParameter)com.Parameters[i]; | |
p.Value = i <= args.Length ? args[i - 1] ?? DBNull.Value : null; | |
} | |
} |
public static void Main (string[] args) | |
{ | |
decimal d = 3.1M; | |
Console.WriteLine((d % 1) == 0); | |
d = 3.0M; | |
Console.WriteLine((d % 1) == 0); | |
} |
public DbType GetDbType(Type type) | |
{ | |
DbType dbType = (DbType)Enum.Parse(typeof(DbType), type.Name); | |
return dbType; | |
} |
//using System.Data.Sql; | |
public List<string> GetLocalNetworkSqlInstances() | |
{ | |
SqlDataSourceEnumerator instances = SqlDataSourceEnumerator.Instance; | |
List<string> listInstance = new List<string>(); | |
DataTable dt = instances.GetDataSources(); | |
listInstance.Clear(); |
public string getLocalIPAddress() | |
{ | |
IPHostEntry host; | |
string localIP = ""; | |
host = Dns.GetHostEntry(Dns.GetHostName()); | |
foreach (IPAddress ip in host.AddressList) | |
{ | |
if (ip.AddressFamily == AddressFamily.InterNetwork) | |
{ | |
localIP = ip.ToString(); |
#!/bin/sh | |
#configure the color.ui from git console in ubuntu. | |
#DOC: http://git-scm.com/book/en/Customizing-Git-Git-Configuration | |
git config --global color.ui = always |
http://json-time.appspot.com/time.json?tz=America/Caracas&callback=HoraMundial |
I hereby claim:
To claim this, I am signing this object:
@echo off | |
set dbUser=root | |
set dbPassword=yourPassword | |
set backupDir="C:\Documents and Settings\user\Desktop\backup\mysql" | |
set mysqldump="C:\Program Files\MySQL\MySQL Workbench 5.2 CE\mysqldump.exe" | |
set mysqlDataDir="C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data" | |
set zip="C:\Program Files\7-Zip\7z.exe" | |
::Change date delimiter to - |
#!/usr/bin/env python | |
import praw | |
import json | |
import OAuth2Util | |
import requests | |
import re | |
from lxml.cssselect import CSSSelector | |
import lxml.html | |
def check_none_type_object(obj): |