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:
public void ChangeConnectionString(string key) | |
{ | |
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
var connectionStringsSection = (ConnectionStringsSection)config.GetSection("connectionStrings"); | |
var value = connectionStringsSection.ConnectionStrings[key]; | |
connectionStringsSection.ConnectionStrings[key].ConnectionString = ConnectionString; | |
config.Save(ConfigurationSaveMode.Modified, true); | |
ConfigurationManager.RefreshSection("connectionStrings"); | |
} |
#!/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): |
@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 - |
I hereby claim:
To claim this, I am signing this object:
http://json-time.appspot.com/time.json?tz=America/Caracas&callback=HoraMundial |
#!/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 |
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(); |
//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 DbType GetDbType(Type type) | |
{ | |
DbType dbType = (DbType)Enum.Parse(typeof(DbType), type.Name); | |
return dbType; | |
} |
public static void Main (string[] args) | |
{ | |
decimal d = 3.1M; | |
Console.WriteLine((d % 1) == 0); | |
d = 3.0M; | |
Console.WriteLine((d % 1) == 0); | |
} |