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
#unicode | |
setw -g utf8 on | |
set -g status-utf8 on | |
unbind C-b | |
set -g prefix C-q | |
bind C-q send-prefix | |
bind r source-file ~/.tmux.conf |
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
What does the following code print to the console? | |
var person = { | |
name: "Joe Camel", | |
age: 42, | |
status: "dead" | |
} | |
console.log(typeof person); | |
-------------------------------------------------- | |
"object" |
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
What does the following code evaluate to? | |
var first_name = function (name) { | |
return name; | |
} | |
first_name("bob"); | |
-------------------------------------------------- | |
"bob" | |
-------------------------------------------------- |
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
What does the following expression return? | |
4 > 1; | |
true | |
What does the following expression return? | |
"chatty" === "chatty"; | |
true |
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
1. 5 | |
2. number | |
3. true | |
4. Infinity | |
5. NaN | |
6. false | |
7. number | |
8. true | |
9. 8 | |
10. The variable first_name is declared. Javascript hoists the variable and instantiates it. Then the variable is initialized to "cindy" |
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
a { | |
margin: 3%; | |
display: inline-block; | |
padding: 10px 18px; | |
color: #505050; | |
font: bold 20px Helvetica, sans-serf; | |
border-radius: 9px; | |
text-shadow: 0 1px white; | |
text-transform: uppercase; | |
text-decoration: none; |
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
a { | |
display: inline-block; | |
background-color: #B6B6B6; | |
text-align: center; | |
text-decoration: none; | |
text-transform: uppercase; | |
font-weight: 700; | |
font-size: 1.5em; | |
font-family: sans-serif; | |
color: #5D595A; |
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
array1 = [0,1,2,3,4] | |
array2 = array1 | |
array1[0] = 5 | |
array1 | |
# => [5,1,2,3,4] | |
array2 | |
# => [5,1,2,3,4] |
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
string1 = "arrays are mutable" | |
string2 = "and so are strings" | |
string3 = "did you know?" | |
array1 = [string1, string2, string1] | |
array1[0] << " and so are strings" | |
array1 |
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
[ | |
[0] { | |
"BEETS" => { | |
:price => 2.5, | |
:clearance => false, | |
:count => 3 | |
} | |
}, | |
[1] { | |
"TEMPEH" => { |
NewerOlder