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
Rem ============================================================================ | |
Rem ■ Open with Sublime Text 3 | |
Rem ---------------------------------------------------------------------------- | |
Rem Open folders and files with Sublime Text 3 | |
Rem from Windows explorer context menu. | |
Rem ============================================================================ | |
Rem ---------------------------------------------------------------------------- | |
Rem ● Settings | |
Rem ---------------------------------------------------------------------------- |
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
REM Step 1: Remove old credential | |
REM Execute these commands: | |
git credential-manager reject https://github.com | |
git config --global credential.helper manager-core | |
REM Step 2: Enter new credential | |
REM 1- Choose any repository you have on your machine and try to push it. | |
REM 2- One or more prompt windows will popup asking for credential: Personal Access Token (PAT), Username, and Password. | |
REM 3- Enter: PAT, Username, and if asked for password always enter PAT instead. | |
REM 4- Done. Credential saved and the push should be successful. |
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
REM Check if service exists | |
sc query serviceName | |
REM Enable service to run automatically | |
sc config serviceName start= auto | |
REM Start service | |
net start serviceName |
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
function moneyRawValue(value = 0, decimalSeparator = ",") { | |
if (typeof value === "number") return value; | |
const rawValue = parseFloat( | |
value | |
.replace(/\((?=\d+)(.*)\)/, "-$1") | |
.replace(new RegExp(`[^0-9-${decimalSeparator}]`, "g"), "") | |
.replace(decimalSeparator, ".") | |
); | |
return isNaN(rawValue) ? 0 : rawValue; | |
} |
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
// Function | |
function omit(obj = {}, fields = []) { | |
const rObj = { ...obj }; | |
for (const prop in obj) { | |
if (fields.includes(prop)) { | |
delete rObj[prop]; | |
} | |
} | |
return rObj; | |
} |
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
npm install --global pwa-asset-generator | |
cd [output-folder] | |
pwa-asset-generator [source-file] --manifest [manifest-file] --favicon |
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": "amb-app", | |
"version": "1.0.0", | |
"private": true, | |
"scripts": { | |
"serve": "vue-cli-service serve --open --host=app.ambratolm.com --port=2020", | |
"build": "vue-cli-service build", | |
"lint": "vue-cli-service lint --fix" | |
}, | |
"dependencies": { |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": ".", | |
"folder_exclude_patterns": [ | |
"node_modules" | |
], | |
"file_exclude_patterns": [ | |
"*.sublime-*", |
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 partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void Form1_Load(object sender, EventArgs e) | |
{ | |
label1.Text = "Ma première application évènementielle"; |
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
class Client | |
{ | |
// Attributs | |
private string cin, nom, prénom; | |
private int téléphone; | |
// Accesseurs | |
public int Téléphone | |
{ | |
get { return téléphone; } |