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
Create.Table("AspNetRoles") | |
.WithColumn("Id").AsString().PrimaryKey("PK_AspNetRoles").NotNullable() | |
.WithColumn("ConcurrencyStamp").AsString().Nullable() | |
.WithColumn("Name").AsString(256).NotNullable() | |
.WithColumn("NormalizedName").AsString(256).Nullable() | |
.Indexed("RoleNameIndex"); | |
Create.Table("AspNetUserTokens") | |
.WithColumn("UserId").AsString().PrimaryKey("PK_AspNetUserTokens").NotNullable() |
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
[Migration(1)] | |
public class _201612091350_CreateAspNetIdentity : AutoReversingMigration | |
{ | |
public override void Up() | |
{ | |
Create.Table("AspNetRoles") | |
.WithColumn("Id").AsString().PrimaryKey("PK_AspNetRoles").NotNullable() | |
.WithColumn("ConcurrencyStamp").AsString().Nullable() | |
.WithColumn("Name").AsString(256).NotNullable() | |
.WithColumn("NormalizedName").AsString(256).Nullable() |
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
// #geoJson #bot #localization #doordinates | |
var remap = function(e) { | |
if (e.LATITUDEGOOGLE) { | |
e.geoJson = { type: 'Point', name: e['Nome do Estabelecimento'], coordinates: [ e.LONGITUDEGOOGLE, e.LATITUDEGOOGLE ]}; | |
db.estabSus.save(e); | |
} | |
} |
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
var source = require('vinyl-source-stream'); | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var browserify = require('browserify'); | |
var reactify = require('reactify'); | |
var watchify = require('watchify'); | |
var notify = require("gulp-notify"); | |
var scriptsDir = './scripts'; | |
var buildDir = './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
{ | |
"name": "my-app", | |
"version": "0.0.0", | |
"dependencies": { | |
"browserify": "~2.36.1", | |
"less": "~1.5.1" | |
}, | |
"devDependencies": { | |
"watchify": "~0.4.1", | |
"catw": "~0.2.0" |
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
var _ = require('underscore'); | |
var fs = require('fs'); | |
var menu = JSON.parse(fs.readFileSync('file.json', 'utf8')); | |
menu = _.sortBy(menu, 'nome'); | |
menu = JSON.stringify(menu, null, 4); | |
fs.writeFile("menu.json", menu); |
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
@ECHO OFF | |
SETLOCAL | |
SET "NODE_EXE=%~dp0\node.exe" | |
IF NOT EXIST "%NODE_EXE%" ( | |
SET "NODE_EXE=node" | |
) | |
SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2015-02-04 16:59:44" build="140707"> | |
<value name="ColorTable00" type="dword" data="00362b00"/> | |
<value name="ColorTable01" type="dword" data="00423607"/> | |
<value name="ColorTable02" type="dword" data="00756e58"/> | |
<value name="ColorTable03" type="dword" data="00837b65"/> | |
<value name="ColorTable04" type="dword" data="002f32dc"/> | |
<value name="ColorTable05" type="dword" data="00c4716c"/> |
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
-------------------- | |
Exit Commands | |
-------------------- | |
:q Quit (a warning is printed if a modified file has not been saved) | |
:q! Quit (no warning) | |
:wq Write file to disk and quit the editor (a warning is printed if a modified other files) |
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 class DecimalModelBinder : IModelBinder | |
{ | |
public object BindModel(ControllerContext controllerContext, | |
ModelBindingContext bindingContext) | |
{ | |
ValueProviderResult valueResult = bindingContext.ValueProvider | |
.GetValue(bindingContext.ModelName); | |
ModelState modelState = new ModelState { Value = valueResult }; | |
object actualValue = null; | |
try |