Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
exports.transferHandler = function transferHandler(event, context) { | |
context.callbackWaitsForEmptyEventLoop = false; | |
const time = new Date(); | |
const current_time_unix = moment().unix(); | |
connectToDatabase() | |
.then(() => { | |
BookingModel | |
.find({}) | |
.then((bookings) => { |
<table class="table-wrap is-billing"> | |
<tr> | |
<th>Base Plan</th> | |
<td> | |
<p>Pro 100K</p> | |
<p class="plan-details">100,000 emails/mo</p> | |
<button class="btn btn-small btn-secondary">Change Plan</button> | |
</td> | |
<td> | |
$67.96 |
exports.handler = (event, context, callback) => { | |
const response = { | |
statusCode: 301, | |
headers: { | |
Location: 'https://google.com', | |
} | |
}; | |
return callback(null, response); | |
} |
let items = []; | |
for (var hour = 0; hour < 24; hour++) { | |
items.push([hour, 0]); | |
items.push([hour, 30]); | |
} | |
const date = new Date(); | |
const formatter = new Intl.DateTimeFormat('en-US', { | |
hour: 'numeric', | |
minute: 'numeric', |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
httpClient.DefaultRequestHeaders.Authorization = | |
new AuthenticationHeaderValue( | |
"Basic", | |
Convert.ToBase64String( | |
System.Text.ASCIIEncoding.ASCII.GetBytes( | |
string.Format("{0}:{1}", username, password)))); |