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
define('DB_HOST', 'localhost'); | |
define('DB_PORT', '3306'); | |
define('DB_NAME', 'mydb'); | |
define('DB_USERNAME', 'root'); | |
define('DB_PASSWORD', '...'); | |
try { | |
$dsn = 'mysql:host=' . DB_HOST . ';port=' . DB_PORT . | |
';dbname=' . DB_NAME; | |
$pdo = new PDO($dsn, DB_USERNAME, DB_PASSWORD); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, |
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
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[stp_MaintainIndexesInDatabase]') AND type in (N'P', N'PC')) | |
DROP PROCEDURE [dbo].[stp_MaintainIndexesInDatabase] | |
GO | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
-- ============================================= | |
-- Author: Daniel Petersen |
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
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
# User-specific files | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates | |
*.[Oo]bj |
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; | |
using System.Configuration; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace WeeklyDateRanges | |
{ |
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
Subject line (try to keep under 50 characters) | |
Multi-line description of commit, | |
feel free to be detailed. | |
Related work items: #<TFS_ITEM#> |
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
import { createStore } from 'redux'; | |
const INCREASE_COUNT = 'INCREASE_COUNT'; | |
// Action Creator using ES5 Arrow Syntax | |
export const increaseCount = (amount = 1) => ({ | |
type: INCREASE_COUNT, | |
payload: amount, | |
}); |
OlderNewer