Skip to content

Instantly share code, notes, and snippets.

View igeligel's full-sized avatar
🤷‍♀️
Shifting bits around the world

Kevin Peters igeligel

🤷‍♀️
Shifting bits around the world
View GitHub Profile
SELECT * FROM example_table WHERE example_column='Mel';
# Get all entries like Melissa, Melli.
# Not depending on how many characters are wildcarded.
SELECT * FROM example_table WHERE example_column LIKE 'Mel%';
# Get all entries like Meli, Melo.
# Depending on how many characters are wildcarded.
SELECT * FROM example_table WHERE example_column LIKE 'Mel_';
# Or for multiple characters, here 2
SELECT * FROM example_table WHERE example_column LIKE 'Mel__';
const a = 1;
console.log(a);
var memoryStorage = require("./storage/memory");
function Multer(options) {
// ...
}
Multer.prototype.single = function(name) {
// ...
};
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-table>
<tr style="text-align:left; background-color: #dae4e9; color: #70818a;">
<th style="padding: 0 0 0 16px; text-align:left;">Year</th>
<th style="padding: 10px 0; text-align:left;">Language</th>
<th style="padding: 0px 16px 0 0px; text-align:left;">Inspired from</th>
</tr>
const basePerson = {
firstName: "Max"
};
const condition = getCondition();
const person = {
...basePerson,
...(condition && { lastName: "" })
};
const basePerson = {
firstName: "Max"
};
const condition = getCondition()
const result = condition && { lastName: "" };
// Can be either false or { lastName: "" }
const person = {
...basePerson,
const basePerson = {
firstName: "Max"
};
const person = {
...basePerson,
...{ lastName: "" }
};
const basePerson = {
firstName: "Max"
};
const person = {
...basePerson,
lastName: ""
};