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; | |
using System.Collections.Generic; | |
namespace Chunkerizer | |
{ | |
public delegate string ChunkHeaderGenerator(int chunkIndex); | |
/// <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
let &runtimepath.=',$HOME/My Documents/GitHub/dotfiles/vim/' | |
source $HOME/My Documents/GitHub/dotfiles/vimrc |
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
@echo off | |
for /f "delims=" %%x in ('dir /od /b \\server\dir\*.*') do set recent=%%x | |
echo %recent% |
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
" Helpers for TFS integration | |
map <F5> :silent !tf checkout %<CR><CR> | |
map <C-F5> :silent !tf diff %<CR><CR> |
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
'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 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"; |
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
samples=[ | |
# ======================================= | |
# input, expected result pairs | |
# ======================================= | |
# empty list | |
([], []), | |
# single digit | |
([1], [(1,1)]), | |
# basic range | |
([1,2,3], [(1,3)]), |
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
/* | |
************************************************************************ | |
Blink out a message in morse code | |
************************************************************************ | |
*/ | |
const int led = 13; | |
const char* message = "HELLO WORLD"; | |
const int letter_unit_delay = 500; |
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
#!/usr/bin/env python | |
import os | |
import sys | |
LINE_COUNT =40 | |
def dumpLines(basename, segment, lines): | |
fn ='%s_%02d.png' % (basename, segment) | |
print fn | |
f = os.popen("qrencode -o \"%s\" " % fn,'w') |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.ServiceModel; | |
using System.ServiceModel.Description; | |
using System.ServiceModel.Web; | |
using System.Text; |