-
What is the "smallest" number possible in JavaScript?
-
Explain why the following doesn't work as an IIFE. What needs to be changed to properly make it an IIFE?
function foo(){ }();
-
What is
arr.length
?
var arr = [];
arr[10] = 'ten';
/** | |
* Converts a rich text value to HTML markup. | |
* | |
* Only honours "markdown-supported" HTML tags, disregarding any other cell formatting value (such as color, background color, etc.). In other words, keeps the plain text value of the text in the cell, adding only the following HTML tags when necessary: | |
* | |
* - <strong> | |
* - <em> | |
* - <del> | |
* - <span style="text-decoration: underline"> | |
* - <a href=""> |
/** | |
* Converts a string to a "URL-safe" slug. | |
* Allows for some customization with two optional parameters: | |
* | |
* @param {string} Delimiter used. If not specified, defaults to a dash "-" | |
* @param {array} Adds to the list of non-alphanumeric characters which | |
* will be converted to the delimiter. The default list includes: | |
* ['–', '—', '―', '~', '\\', '/', '|', '+', '\'', '‘', '’', ' '] | |
*/ | |
if (!String.prototype.slugify) { |
# use: | |
# .bash_profile - only gets executed for login bash shells | |
# .bashrc - only gets executed for NON-login bash shells for only NON-login shells | |
# .profile - gets executed for ANY login shell | |
# .bash_logout - only gets executed for bash shells after logout | |
# Sets the prompt: | |
#PS1='\h:\w \u\$ ' | |
#PS2='> ' |
/** | |
* Creates a new top-level menu item (called: 🔬) with useful debugging options within. | |
* | |
* Requires a global `CONFIG.ENV` variable is set to "development". | |
*/ | |
if (CONFIG.ENV === 'development') { | |
var ui = DocumentApp.getUi(); | |
var topMenu = ui.createMenu('🔬'); // As addon, equivalent to `ui.createAddonMenu()` (title is the Addon name) | |
/** | |
* Facilitates adding includes into HTML documents. | |
* <?!= include('path/to/filename'); ?> | |
* | |
* https://developers.google.com/apps-script/guides/html/best-practices#separate_html_css_and_javascript | |
*/ | |
function include(filename) { | |
return HtmlService.createHtmlOutputFromFile(filename).getContent(); | |
} |
<figure class="op-tracker"> | |
<iframe> | |
<!-- Facebook Pixel Code --> | |
<script> | |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; | |
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; | |
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, | |
document,'script','https://connect.facebook.net/en_US/fbevents.js'); | |
fbq('init', '{PIXEL/APP_ID}'); // Insert your pixel ID here. |
git filter-branch -f --env-filter \ | |
'if [ $GIT_COMMIT = dad723b0e1993e4626e4d91edcea101389bdd87e ] | |
then | |
export GIT_AUTHOR_DATE="Mon Nov 17 16:00:53 2014 +0000" | |
export GIT_COMMITTER_DATE="Mon Nov 17 16:00:53 2014 +0000" | |
fi' |
[user] | |
name = Paulo Avila | |
#email = | |
[alias] | |
br = branch | |
co = checkout | |
ci = commit -a | |
feature = checkout -b | |
amend = commit --amend #--no-edit |
What is the "smallest" number possible in JavaScript?
Explain why the following doesn't work as an IIFE. What needs to be changed to properly make it an IIFE?
function foo(){ }();
What is arr.length
?
var arr = [];
arr[10] = 'ten';