/act
/auth
actions.js
actiontypes.js
reducer.js
/...
actions.js
using:
react-router
react-router-redux
react-act
// reducers.js
When using EF (or any other ORM utilizing lazy loading) DO NOT pass your entity objects around different layered of your application.
Just turn them into a purpose-built DTO ASAP.
Gotcha: otherwise you will get a ObjectContext disposed
error whenever the code retrieving your eneity changes the way it handles the retrieval (context dispose).
in other words: this code:
using(var context = new MyContext())
-
Front-End
- react + redux (+ redux-act + react-route)
- babel (preset-latest)
- webpack
-
Back-End
- asp.net core
- mediator
-
OrientDB
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
$ powershell | |
$ docker ps -q | % { docker kill $_ } |
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
// given this is an array of arrays | |
Array.prototype.zip = function () { | |
return this | |
.filter(a => a.length > 0) | |
.reduce((r, a, ix) => { | |
a.forEach((e, jx) => r.splice(jx*ix + ix + jx, 0, e)); | |
return r; | |
}, []); | |
} |
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 config = settings.domains[this.url.domain]; | |
if(!config) { | |
return this.error("invalid domain"); | |
} | |
if(config.subdomains && this.user.subdomain !== this.url.subdomain) { | |
return this.redirectToSubDomain(); | |
} |
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
Get-ChildItem -Recurse -Depth 5 -Path "." | | |
? { $_.Name -eq "packages.config" } | | |
% { ([xml](Get-Content -Path $_.FullName)).packages.package | select id, version } | | |
Group-Object -Property id | | |
select Name, @{ Name="Versions"; Expression= { $_.Group | select -ExpandProperty version -Unique }} | | |
? { $_.Versions.Count -gt 1 } | | |
Sort-Object -Property Name | | |
% { Write-Error "Package '$($_.Name)' has multiple versions used across the solution! $($_.Versions)" } |
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 static string GetTableName(this ObjectContext context, Type t) | |
{ | |
var entityName = t.Name; | |
var storageMetadata = context.MetadataWorkspace.GetItems<EntityContainerMapping>(DataSpace.CSSpace); | |
foreach (var ecm in storageMetadata) | |
{ | |
EntitySet entitySet; | |
if (ecm.StoreEntityContainer.TryGetEntitySetByName(entityName, true, out entitySet)) | |
{ |
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
Param( | |
[Parameter(Mandatory=$true)][string]$git_url, | |
[Parameter(Mandatory=$true)][string]$github_token, | |
[string]$github_base = "master", | |
[string]$github_head = "develop", | |
[string]$version_build = "0", | |
[Parameter(Mandatory=$true)][string]$tp_domain, | |
[Parameter(Mandatory=$true)][string]$tp_username, | |
[Parameter(Mandatory=$true)][string]$tp_password | |
) |