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.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Data; | |
using System.Data.OleDb; | |
using System.Text.RegularExpressions; | |
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
set colorcolumn=85 | |
:imap <C-BS> <C-W> | |
"call pathogen#runtime_append_all_bundles() | |
syntax enable | |
colorscheme desert | |
set background=dark | |
colorscheme solarized | |
"match Todo /\s\+$/ " highlight trailing whitespace | |
"tab keyboard shortcuts | |
nnoremap <C-N> :tabnew<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
using System; | |
using System.Collections.ObjectModel; | |
using System.Management.Automation; | |
using System.Management.Automation.Runspaces; | |
using System.Text; | |
// Build Command: | |
// C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe PowerShellScriptExecutionDemo.cs /reference:C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll | |
namespace PowerShellScriptExecutionDemo |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description} | |
<meta name="if:Show Title in Topbar" content="1" /> | |
<meta name="if:Show Title in Header" content="1" /> | |
<meta name="if:Show Home Link" content="1" /> | |
<meta name="if:Show Description in Header" content="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
/* | |
* Set LED brightness by serial write | |
* An Arduino experiment | |
* by Brian Morton | |
*/ | |
int ledPin = 9; | |
int brightness = 0; | |
void setup() { |
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
# Adapted from http://www.simple-talk.com/sql/database-administration/automated-script-generation-with-powershell-and-smo/ | |
<# | |
.SYNOPSIS | |
Generate file-per-object scripts of specified server and database. | |
.DESCRIPTION | |
Generate file-per-object scripts of specified server and database to specified directory. Attempts to create specified directory if not found. | |
.PARAMETER ServerName |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,5c,e0,3a,00,00,00,00,00 |
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
PROCEDURE GetTimeStamp | |
#define DEBUGGING .F. | |
*======================================================= | |
* GetTimeStamp( vDateTime ) | |
* | |
* Returns a FOX system file timestamp | |
* from a date time value, any data type | |
* | |
* Calls: intToBin(), binToInt() defined below. | |
*======================================================= |
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
Start-Service -DisplayName "SQL Server (MSSQLSERVER)" | |
Start-Service -DisplayName "SQL Server Browser" | |
Start-Service -DisplayName "SQL Server Agent (MSSQLSERVER)" |
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 @table1 table (date_field date, value_field varchar(25)) | |
insert into @table1 (date_field, value_field) values | |
('4/1/2012', 'intial value 1'), | |
('4/2/2012', 'intial value 2'), | |
('4/3/2012', 'intial value 3'), | |
('4/4/2012', 'intial value 4') | |
select * from @table1 |
OlderNewer