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
Template Name: New Order Email | |
Template Subject: {{var store.getFrontendName()}}: New Order # {{var order.increment_id}} | |
Template Content | |
{{template config_path="design/email/header"}} | |
{{inlinecss file="email-inline.css"}} | |
<table cellpadding="0" cellspacing="0" border="0"> | |
<tr> | |
<td> |
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
#delete sessions older than 90 days in public_html folder | |
find var/session/* -mtime +90 -exec rm {} \; |
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
//INITIALIZES THE NPM PACKAGES USED// | |
var mysql = require('mysql'); | |
var inquirer = require('inquirer'); | |
//INITIALIZES THE CONNECTION VARIABLE TO SYNC WITH A MYSQL DATABASE// | |
var connection = mysql.createConnection({ | |
host: "localhost", | |
port: 3306, | |
user: "root", //Your username// | |
password: "", //Your password// |
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
document.onkeyup = function(event) { | |
var keypress = String.fromCharCode(event.keyCode).toLowerCase(); | |
}; |
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
localStorage.clear(); //clears all data from localStorage | |
localStorage.setItem('name', 'john'); //set name to john | |
localStorage.setItem('user_id', '124242'); //set user_id to 124242 | |
var n = localStorage.getItem('name'); //returns name and set to variable n; | |
var u = localStorage.getItem('user_id'); //returns 124242 and set to variable u; | |
console.log(n) //john |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// will not save updated date | |
doc.eventDate.setDay(10); | |
doc.save(); | |
// will save updated date | |
doc.eventDate.setDay(10); | |
doc.markModified('eventDate'); | |
doc.save(); |
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
document.mynumberlist.set(0, 2); | |
document.save(); |
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
document.mynumberlist[0] = 2; | |
document.markModified('mynumberlist'); //notify mongoose of the change | |
document.save(); |
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
document.mynumberlist[0] = 2; | |
document.save(); |
NewerOlder