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
Show hidden characters
{ | |
"property": { | |
"prefix": ["prop"], | |
"body": [ | |
"private _${1:propertyName}: ${2:propertyType};", | |
"public get $1(): $2 {", | |
"\treturn this._$1;", | |
"}", | |
"public set $1(value: $2) {", | |
"\tif (value !== this._$1) {", |
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 { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { MatAutocompleteModule } from '@angular/material/autocomplete'; | |
import { MatBadgeModule } from '@angular/material/badge'; | |
import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; | |
import { MatButtonModule } from '@angular/material/button'; | |
import { MatButtonToggleModule } from '@angular/material/button-toggle'; | |
import { MatCardModule } from '@angular/material/card'; | |
import { MatCheckboxModule } from '@angular/material/checkbox'; | |
import { MatChipsModule } from '@angular/material/chips'; |
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 { Injectable } from '@angular/core'; | |
import { Subject } from 'rxjs'; | |
// Probably want a better way to do this, but this needs to be referenced: | |
// <script src="//cdn.jsdelivr.net/npm/pouchdb@7.0.0/dist/pouchdb.min.js"></script> | |
// because no other way to declare PouchDB appears to work at this time | |
declare const PouchDB; | |
function newid(): string { |
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
.container { | |
margin: 1em; | |
padding: 1em; | |
} | |
button { | |
position: relative; | |
border: none; | |
padding: 8px; | |
background-color: rgba(66, 100, 200, .9); |
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 <Foundation/CPObject.j> | |
@import <Foundation/CPAttributedString.j> | |
var _regexColors; | |
@implementation ColorizingTextView : KVOCPText | |
{ | |
} |
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.Data; | |
namespace Data.Additions | |
{ | |
/// <summary> | |
/// Represents an object that can be loaded from an IDataReader | |
/// </summary> | |
public interface IDataReaderLoadable |
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
"use strict"; | |
var http = require("http"); | |
http.createServer(function(request, response){ | |
response.writeHead(200, 'OK'); | |
response.write('<h1>Hello, Nodejs</h1>'); | |
response.end(); | |
}).listen(8080); |
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.Linq; | |
using System.Data; | |
namespace Red.Data | |
{ | |
/// <summary> | |
/// DbClient offers some utility for working with databases. | |
/// </summary> |
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
SELECT | |
R.SPECIFIC_NAME, | |
R.ROUTINE_BODY, | |
R.ROUTINE_DEFINITION, | |
P.PARAMETER_NAME, | |
P.DATA_TYPE, | |
P.CHARACTER_MAXIMUM_LENGTH | |
FROM INFORMATION_SCHEMA.ROUTINES R | |
INNER JOIN INFORMATION_SCHEMA.PARAMETERS P ON P.SPECIFIC_NAME = R.SPECIFIC_NAME | |
WHERE |
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
static public string SeparatePascalCasedWords(this string input) | |
{ | |
System.Text.RegularExpressions.Regex.Replace(input, "(?<=[a-z])([A-Z])", " $1", System.Text.RegularExpressions.RegexOptions.Compiled).Trim(); | |
} |