Skip to content

Instantly share code, notes, and snippets.

@teyc
teyc / DbUp.csproj
Last active August 29, 2015 14:23 — forked from sheastrickland/DbUp.csproj
MSBuild convention checks
<Target Name="AfterBuild">
<Message Text="@(Content)" Importance="high" Condition="%(Content.Extension) == '.sql'" />
<Error Condition="%(Content.Extension) == '.sql'" Text="Nothing should be marked as Content, check your scripts are marked as Embedded Resource" />
</Target>
@teyc
teyc / convertToCamelCase.js
Last active February 7, 2019 01:18 — forked from sibu-github/convertToCamelCase.js
convert a JSON keys to camel case
// convert a key string to camelcase
function toCamelCase(str) {
// when str is not defined reuturn
if (!str) {
return str;
}
return str.charAt(0).toLowerCase() + str.substring(1);
}