- JavaScript
- The language
- http://jsfiddle.net/ - site for playing with javascript, html, css in your browser
- http://www.codecademy.com/en/tracks/javascript - good hands on introduction to javascript
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide - excellent deeper dive intro to javascript
- The language
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
USE DatabaseName | |
GO | |
CREATE TABLE #temp_table ( | |
table_name sysname , | |
row_count INT, | |
reserved_size VARCHAR(50), | |
data_size VARCHAR(50), | |
index_size VARCHAR(50), | |
unused_size VARCHAR(50)) |
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
/*jslint | |
browser: true, | |
node: true */ | |
/*global $ */ |
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
Write-Host "Loading connection..." -ForegroundColor Yellow -NoNewline | |
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection | |
Write-Host "Done." -ForegroundColor Green | |
#Set the connection string | |
$SqlConnection.ConnectionString = "Server=,<server name>;Database=<database name>;Integrated Security=True" | |
#Declare a SqlCommand object | |
$SqlCommand = New-Object System.Data.SqlClient.SqlCommand | |
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
-- ============================================= | |
-- Author: Jon - jond@csgpro.com | |
-- Create date: 2013-03-05 | |
-- Description: Helper function for comparing columns between two tables. | |
-- ============================================= | |
CREATE FUNCTION [helper].[fnCompareTableColumns] ( | |
@baseTable varchar(250), | |
@compareTable varchar(250) | |
) | |
RETURNS TABLE |
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
-- author: jond@csgpro.com | |
-- create: 2013-03-08 | |
-- description: this proc will take table name, schema name, and optional action parameters | |
-- and insert an "unknown" record into that dimension table for you. If you don't | |
-- specific the @Action parameter as 'runit', then it will only print the SQL | |
-- output for you. | |
create proc [helper].[UnknownRow] | |
@TableName sysname, | |
@TableSchema sysname = 'dbo', |
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
// Make sure you have a `bundle.js` file in the current dir and run this like: | |
// # go run webpack_bundle_analysis.go | sort -n | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
"strings" |
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
data: { | |
"event": "response", | |
"timestamp": 1436046421423, | |
"id": "1436046421423:jdelamotte:5282:ibpkyk17:10001", | |
"instance": "http://jdelamotte:8888", | |
"labels": [], | |
"method": "get", | |
"path": "/js/bundle.js", | |
"query": {}, | |
"responseTime": 8, |
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
// ------------------------------------- | |
// Example 1 (function expression) | |
// | |
test(); // Won't work | |
var test = function () { | |
alert('Yolo'); | |
}; |
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
var h = require('virtual-dom/h'); | |
var diff = require('virtual-dom/diff'); | |
var patch = require('virtual-dom/patch'); | |
var createElement = require('virtual-dom/create-element'); | |
var rows = [ | |
{data: 'hello'}, | |
{data: 'there'}, | |
{data: 'friend.'} | |
]; |