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
| [DataContract] | |
| public class Contact | |
| { | |
| public Contact() | |
| { | |
| Children = new List<string>(); | |
| Other = new Dictionary<string, int>(); | |
| } | |
| public Contact(int id, string name, string description) |
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.ServiceModel; | |
| using ConsoleApplication6.TestApi; | |
| namespace ConsoleApplication6 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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
| function styleCode() | |
| { | |
| if (typeof disableStyleCode != "undefined") | |
| { | |
| return; | |
| } | |
| var a = false; | |
| $("pre code").parent().each(function() |
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
| #!/usr/bin/env python | |
| # ============================================================ | |
| # Configuration file: ~/.gdata | |
| # [gdata] | |
| # user: user@gmail.com | |
| # password: password or per-app password | |
| # ============================================================ | |
| import sys |
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; | |
| namespace Chunkerizer | |
| { | |
| public delegate string ChunkHeaderGenerator(int chunkIndex); | |
| /// <summary> | |
| /// | |
| /// _________________.---.______ |
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
| let &runtimepath.=',$HOME/My Documents/GitHub/dotfiles/vim/' | |
| source $HOME/My Documents/GitHub/dotfiles/vimrc |
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
| @echo off | |
| for /f "delims=" %%x in ('dir /od /b \\server\dir\*.*') do set recent=%%x | |
| echo %recent% |
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
| " Helpers for TFS integration | |
| map <F5> :silent !tf checkout %<CR><CR> | |
| map <C-F5> :silent !tf diff %<CR><CR> |
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
| 'Outlook VB Macro to move selected mail item(s) to a target folder | |
| Sub MoveToArchive() | |
| On Error Resume Next | |
| Dim ns As Outlook.NameSpace | |
| Dim moveToFolder As Outlook.MAPIFolder | |
| Dim objItem As Object | |
| Set ns = Application.GetNamespace("MAPI") |
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
| static void SetCrystalPath() | |
| { | |
| string crpath; | |
| if (Environment.Is64BitProcess) | |
| { | |
| crpath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64"; | |
| } | |
| else | |
| { | |
| crpath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86"; |
OlderNewer