-
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';
### General settings | |
##################################### | |
DirectoryIndex index.inc | |
Options +FollowSymlinks | |
Options -Indexes | |
### Enable GZIP compression | |
##################################### |
.vendorify(@prop, @vals...) { | |
@property: e('@{prop}'); | |
@values: `'@{arguments}'.replace(/^\[|\]$/g, '').split(', ').splice(1)`; | |
// v1.6.0 added interpolation allowing us to do this: | |
-o-@{property}: @values; | |
-ms-@{property}: @values; | |
-moz-@{property}: @values; | |
-webkit-@{property}: @values; | |
@{property}: @values; |
syntax on " turns syntax highlighting on | |
colorscheme default " defines the color scheme of the syntax highlighting | |
set nocompatible " (cp) use Vim defaults (much better) | |
set hidden " (hid) hide buffers instead of closing them when they are abandoned | |
set ruler " (ru) show the cursor position at all times | |
set showcmd " (sc) display an incomplete command in the lower right | |
set history=100 " (hi) keep 50 lines of command history | |
set undolevels=100 " (ul) maximum number of changes that can be undone | |
set number " (nu) show line numbers |
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';
# .bash_logout | |
# Executed after logout of bash shells | |
clear |
### Bash colors and formatting | |
# To set the formatting/color, use the following: | |
# - escape character (\e, \033, \x1B) | |
# - open square bracket | |
# - attributes (semicolon-separated) | |
# - the letter m | |
# | |
# \033[<attribute>;...m |
[ui] | |
username = Paulo Avila #<> | |
status.modified = blue bold # M | |
status.added = green bold # A | |
status.removed = red bold # R | |
#status.clean = # C | |
#status.deleted = cyan bold # | |
#status.missing = # ! | |
#status.untracked = blue bold # ? |
changeset = "{shortest(node)} {label('blue', '{author|user}')}{if(phabdiff, label('bold', \" {phabdiff}\"))}{bookmarks} {label('cyan', '({date|age})')}\n{desc|firstline}{ifeq(rev, revset('.'), '{files}{file_mods}{file_adds}{file_dels}')}\n\n" | |
# CURRENTLY, for some reason, the ifeq() condition doesn't work | |
# I think it's because we're doing the check with "current" inside this "bookmark variable" | |
bookmark = " {ifeq(bookmark, current, label('yellow', '{bookmark}*'), label('green', '{bookmark}'))}" | |
#start_files = "ALL:\n" | |
start_files = "\n\n {sub(\"(\d+):\s+\+(\d+)\/-(\d+)\", label('magenta underline', '\\1 files changed: +\\2/-\\3:'), diffstat)}" | |
file = "" | |
end_files = "" |
[user] | |
name = Paulo Avila | |
#email = | |
[alias] | |
br = branch | |
co = checkout | |
ci = commit -a | |
feature = checkout -b | |
amend = commit --amend #--no-edit |