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
# daily programmer #162 easy "Novel Compression pt. 1: Unpacking the Data" | |
# author: Kit Roed | |
# example dictionary: | |
# | |
# is | |
# my | |
# hello | |
# name | |
# stan |
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
# r/dailyprogrammer challenge number 163 "easy" | |
# Probability Distribution of a 6 Sided Di | |
# Author: Kit Roed | |
# Language: python3 | |
#make python random do all the work | |
import random | |
dsize = 6 | |
roll_counts = [] |
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
void Main() | |
{ | |
// Uncomment QueryDuplicates2 to run that query. | |
// QueryDuplicates(); | |
QueryDuplicates2(); | |
// Keep the console window open in debug mode. | |
// Console.WriteLine("Press any key to exit."); | |
// Console.ReadKey(); | |
} |
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 |
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
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
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
# 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
/* | |
* 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
<!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" /> |