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
public class DataDTO | |
{ | |
public string id { get; set; } | |
public string name { get; set; } | |
} |
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
Mapper.Initialize(cfg => { | |
cfg.CreateMap<account_roles, RoleDTO>() | |
.ForMember(x => x.id, opt => opt.MapFrom(x => x.role_id)) | |
.ForMember(x => x.name, opt => opt.MapFrom(x => x.role_name)) | |
; | |
cfg.CreateMap<account_users, UserDTO>() | |
.ForMember(x => x.id, opt => opt.MapFrom(x => x.user_id)) | |
.ForMember(x => x.email, opt => opt.MapFrom(x => x.user_email)) | |
; |
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
dataGridView1.AllowDrop = false; | |
dataGridView1.AllowUserToAddRows = false; | |
dataGridView1.AllowUserToDeleteRows = false; | |
dataGridView1.AllowUserToOrderColumns = false; | |
dataGridView1.AllowUserToResizeColumns = false; | |
dataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige; | |
dataGridView1.AutoGenerateColumns = true; // change this | |
dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; | |
dataGridView1.BackgroundColor = Color.Honeydew; | |
dataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Yellow; |
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
/** | |
* If a difference is detected, force to zoom | |
*/ | |
.zoomX{ | |
zoom: 150%; | |
-moz-transform: scale(1.5); | |
} |
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
$http({ | |
method: "POST", | |
url: "api/files.php" | |
}).then(function(response) { | |
$scope.files = response.data; | |
}, function(response) { | |
// error | |
}); |
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
using api.general; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace console | |
{ | |
class run |
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
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Example Search"> | |
Look for Example Search! |
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
using MySql.Data.MySqlClient; | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ |
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
#!/bin/bash | |
# Backup all available databases | |
USERNAME="root"; | |
PASSWORD="password"; | |
for DATABASE in `mysql -u${USERNAME} -p${PASSWORD} -e "SHOW DATABASES;"` | |
do | |
echo mysqldump --routines -u${USERNAME} -p${PASSWORD} ${DATABASE} \> ${DATABASE}.dmp; | |
mysqldump --routines -u${USERNAME} -p${PASSWORD} ${DATABASE} > ${DATABASE}.dmp; |
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
#!/bin/bash | |
ln -s /opt/lampp/bin/mysql /usr/local/bin/mysql | |
ln -s /opt/lampp/bin/mysqldump /usr/local/bin/mysqldump | |
ln -s /opt/lampp/bin/php /usr/local/bin/php | |
ln -s /opt/lampp/lampp /usr/local/bin/lampp |