@{
int x = 123;
string y = "because.";
}
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
// rm -rf ./build && webpack --config webpack.prod.config.js -p --progress | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ROOT = __dirname; | |
var PROJECT_ROOT = path.join(ROOT, 'src'); | |
var BUILD_ROOT = path.join(ROOT, 'build'); |
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
const fs = require("fs"); | |
var csv = require("fast-csv"); | |
var parser = require("parse-full-name").parseFullName; | |
fs.createReadStream("mydata.csv") | |
.pipe(csv()) | |
.on("data", function(data){ | |
name = parser(data[0]); | |
console.log(name.last + ',' + name.first + ',' + name.middle + ','); | |
}) |
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
Jenkins.instance.getItemByFullName("YourJobName").updateNextBuildNumber(45) |
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
INSERT INTO [TaskComments] ([TaskId], [CommentId]) | |
OUTPUT INSERTED.TaskId, INSERTED.CommentId, GETDATE() AS 'Created' | |
VALUES (24, 44) | |
UPDATE Tasks SET Completed = '02-22-2017' OUTPUT INSERTED.Completed, DELETED.Completed WHERE Id = 79 |
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
git config core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin" |
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
# longIslandIcedTea.py | |
# btc_usd on bitfinex | |
# Mike Mahon | |
# [email protected] | |
# 07/02/2017 | |
# Interval Tests - 01-01-2016 to 06-02-2017 - Beg. Bal: $50 | |
# 1 min interval - End Bal: | |
# 15 min interval - End Bal: $223.32 | |
# 30 min interval - End Bal: $206.58 |
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
public static class ObjectDump | |
{ | |
public static void Write(TextWriter writer, object obj) | |
{ | |
if (obj == null) | |
{ | |
writer.WriteLine("Object is null"); | |
return; | |
} |
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
declare @objectid int | |
select @objectid = object_id from sys.objects where name = 'documents' | |
select top 50 | |
db_name(database_id) as [DbName] | |
, * | |
from sys.dm_db_index_usage_stats where object_id = @objectid | |
and last_user_update is not null | |
order by last_user_update |
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
-- Add the Modified field to the row | |
-- E.g. Add a column to the table using a create/alter statement like: | |
-- ... | |
-- Modified DATETIME2(3), | |
-- ... | |
-- Then create the trigger | |
CREATE TRIGGER updateModified | |
ON dbo.YourTable | |
AFTER UPDATE |