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
<html> | |
<canvas id="display" width="1000" height="1000"></canvas> | |
<script> | |
const canvas = document.getElementById('display') | |
.getContext('2d'); | |
const atom = (x, y, c) => { |
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.Threading.Tasks; | |
using BestAppEver.DAL.Infrastructure.Interfaces; | |
using BestAppEver.DAL.Infrastructure.Models.Concrete; | |
using BestAppEver.Models.Data; | |
using BestAppEver.Providers.Data; | |
namespace BestAppEver.DAL.Providers | |
{ |
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 BestAppEver.Injection; | |
using BestAppEver.DAL.Infrastructure.Interfaces; | |
using BestAppEver.DAL.Infrastructure; | |
namespace BestAppEver.DAL.Modules | |
{ | |
public class DataAccessModule : IModule | |
{ | |
public void Bootstrap(IDependencyStore store) | |
{ |
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 BestAppEver.DAL.Infrastructure.Interfaces; | |
namespace BestAppEver.DAL | |
{ | |
public class ConnectionProvider : IConnectionStringProvider | |
{ | |
public string GetConnectionString() | |
{ | |
return "Server=localhost;Database=bestappdata;UID=root;Password=password"; // Should be taken from a configuration file | |
} |
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
βββ Dapper | |
βββ Infrastructure | |
βΒ Β βββ Actions | |
βΒ Β βΒ Β βββ Abstract | |
βΒ Β βΒ Β βββ Concrete | |
βΒ Β βββ Collections | |
βΒ Β βΒ Β βββ Abstract | |
βΒ Β βΒ Β βββ Concrete | |
βΒ Β βββ Enum | |
βΒ Β βββ Filters |
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
βββ BestAppEver | |
βΒ Β βββ Modules | |
βββ BestAppEver.API | |
βΒ Β βββ Controllers | |
βββ BestAppEver.BL | |
βΒ Β βββ Services | |
βββ BestAppEver.DAL | |
βΒ Β βββ Modules | |
βΒ Β βββ Providers | |
βββ BestAppEver.UnitTests |
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
{ | |
"connectionString": | |
"Server=localhost;Database=bestappdata;UID=root;Password=password", | |
"projectPath": "/home/rusith/Documents/Projects/BestAppEver/BackEnd/BestAppEver.DAL", | |
"baseNamespace": "BestAppEver.DAL", | |
"ProjectFile": "BestAppEver.DAL.csproj", | |
"dbms": "mysql", | |
"schema": "animus", | |
"abstractModelsLocation": "./../BestAppEver/Models/Data", | |
"abstractModelsNamespace": "BestAppEver.Models.Data" |
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
sudo -i | |
cd | |
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
tar xzvf ImageMagick-6.8.9-1.tar.gz | |
cd ImageMagick-6.8.9-1/ | |
./configure --prefix=/opt/imagemagick-6.8 && make | |
checkinstall |
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
switch (type.ToLower()) | |
{ | |
case "equals": | |
case "eq": | |
return QueryMaker.EqualsTo(propName, value, quoted); | |
case "notequals": | |
case "neq": | |
case "ne": | |
return QueryMaker.NotEquals(propName, value, quoted); | |
case "contains": |
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 repo = unit.InvoicesViewRepository; | |
var filter = repo.Get() | |
.OrderBy.ModifiedDate.Ascending().Order(); | |
... |
NewerOlder