DataTable.net - Implementation of serverside processing in .net Core MVC with ef core dynamic query to paging, sorting and searching
This file contains 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
// usage | |
$("#dataTable").DataTable( | |
{ | |
"columns": [ | |
{ | |
"data": "precio", | |
"name": "Precio", | |
"render": $.fn.dataTable.render.customNumberFormat('.', ',', 6) | |
} |
This file contains 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
// usage | |
$("#dataTable").DataTable( | |
{ | |
"columns": [ | |
{ | |
"data": "precio", | |
"name": "Precio", | |
"render": $.fn.dataTable.render.customNumberFormat('.', ',', 6) | |
} |
This file contains 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
Get-ChildItem .\ -include bin,obj,node_modules,packages -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
This file contains 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
/* | |
* property: sort by property (name) - type: string | |
* property2: then sort by property2 (name) - type: string - optional | |
* areNumbers: Are property and property2 numbers? - type: boolean - optional | |
*/ | |
Array.prototype.sortBy = function(property, property2, areNumbers) | |
{ | |
return this.sort(function(a,b) | |
{ | |
var valueA = areNumbers ? 0 : ""; |
This file contains 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 { CopyHelper } from '../../helpers/copy.helper'; | |
import { Area } from '../../models/area'; | |
export class AreaListComponent | |
{ | |
... | |
getAreas(): void | |
{ | |
this.service.getAll() | |
.subscribe(response => |
This file contains 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
namespace Helpers | |
{ | |
#region --- Usings --- | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
#endregion |
This file contains 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
# get git remote url names | |
git remote -v | |
# create back up at old app | |
heroku pg:backups:capture --remote origin-remote-name-url | |
heroku pg:backups:download --remote origin-remote-name-url # optional | |
# get backup url | |
heroku pg:backups:url --remote origin-remote-name-url # return s3-amazon-url |
Installing ruby on rails on windows from Ubuntu bash
-
(Optional) Install PogreSQL
-
Install ruby + rails
-
If you install rails 6+, you need to install yarn.
OlderNewer