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
( | |
1 = CASE WHEN :ValueFrom /*Number*/ IS NULL THEN 1 | |
WHEN ColumnName >= :ValueFrom/*Number*/ THEN 1 | |
ELSE NULL END | |
AND | |
1 = CASE WHEN :ValueTo/*Number*/ IS NULL THEN 1 | |
WHEN ColumnName <= :ValueTo/*Number*/ THEN 1 | |
ELSE NULL END | |
) |
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
filesize: { | |
options: { | |
optput: [ | |
{ | |
stdout: true, //default false | |
format: "{fullname} {relname} {filename} {byte:'0.0':green} {'byte'::green}, {kbyte} kb, {mbyte} mb" | |
}, | |
{ | |
path: "reports/filesize/filesize.csv", | |
overwrite: true, //default false |
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
grunt.registerTask("checkglob", "check glob expanded filed", function(){ | |
var config = grunt.config, | |
target = grunt.option("target") + "", | |
props = target.split("."), | |
value = config.data; | |
props.forEach(function(prop){ | |
if(typeof value === "undefined"){ | |
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
//using に追加 | |
using System.Web.Http.OData; | |
using System.Web.Http.OData.Query; | |
namespace Sample.Controllers { | |
public class SampleController: ApiController { | |
//属性付加 | |
[EnableQuery] | |
public IQueryable<User> Get(){ |
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
class Program { | |
static void Main(string[] args) { | |
var query = "select A.ID, A.NAME from (select ID, NAME from BAR) A where A.ID = '1'"; | |
var parser = new TSql120Parser(false); | |
IList<ParseError> errors; | |
var parsedQuery = parser.Parse(new StringReader(query), out errors); | |
if (errors.Count > 0) { | |
foreach (var err in errors) { | |
Console.ForegroundColor = ConsoleColor.Red; | |
Console.WriteLine(err.Message); |
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 _vm = require("vm"); | |
import _path = require("path"); | |
import _fs = require("fs"); | |
function getTypeScriptVersion(): string { | |
var typeScriptDir = _path.dirname(require.resolve("typescript")), | |
packageJsonPath = _path.resolve(typeScriptDir, "..", "package.json"); | |
if (!_fs.existsSync(packageJsonPath)) { | |
throw new Error("TypeScript not found.") |
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
//change "Plugin" | |
function Plugin(element, options){ | |
this._element = element; | |
this._options = options; | |
} | |
//change "Plugin" | |
Plugin.nullValue = {}; | |
//change "pluginName" |
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
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; | |
vertical-align: baseline; | |
background: transparent; | |
color: #444444; /**/ | |
} |
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
html { | |
font-size: 75%; | |
} | |
body { | |
font-family: sans-serif; /**/ | |
overflow: hidden; | |
-moz-user-select: -moz-none; | |
-ms-user-select: none; | |
-webkit-user-select: none; |
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(!JSON){ | |
JSON = {}; | |
} | |
(function(global, undef){ | |
"use strict"; | |
var ch, | |
pos = 0, | |
text, |