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
$grid__width--300: 100 - ($grid__gutter-width--300 * 2); | |
$grid__width--400: 100 - ($grid__gutter-width--400 * 2); | |
$grid__width--500: 100 - ($grid__gutter-width--500 * 2); | |
$grid__width--600: 100 - ($grid__gutter-width--600 * 2); | |
$grid__width--700: 100 - ($grid__gutter-width--700 * 2); |
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
$grid__gutter-width--300: 2.8vw * 2; | |
$grid__gutter-width--400: 2vw * 2; | |
$grid__gutter-width--500: 1.6vw * 2; | |
$grid__gutter-width--600: 1.2vw * 2; | |
$grid__gutter-width--700: 0.8vw * 2; |
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
func act(array:[String]){ | |
for action in array[0..<array.count]{ | |
var num:Int = 0; | |
var arr:Array = Array(action.characters); | |
if(arr.count > 1){ | |
num = Int("\(arr[1])") ?? 0; | |
} | |
switch arr[0]{ | |
case "f": | |
for i in 0...num {moveForward()} |
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
:root { | |
/* blue */ | |
--color: #69f; | |
} | |
span { | |
color: var(--color); | |
} | |
span:hover { |
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
:root { | |
--blue: #69f; | |
} | |
span { | |
color: var(--blue); | |
} |
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
var myfunction = function(){ | |
var someVar = "billy", | |
someOtherVar = "jimmy", | |
someVarThatIWillUse, anotherOne; | |
someVarThatIWillUse = "futureJimmy"; | |
// do stuff; | |
}; |
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
const varExample = () => { | |
if(true){ | |
var billy = `billy`; | |
} | |
console.log(`var: ${billy}`); | |
} | |
const letExample = () => { | |
if(true){ | |
let billy = `billy`; |
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
const varExample2 = () => { | |
for(var i=0; i<2; i++){ | |
console.log(`var in loop i: ${i}`); | |
} | |
console.log(`var outside the loop loop i: ${i}`); | |
}; | |
const letExample2 = () => { | |
for(let i=0; i<2; i++){ | |
console.log(`let in loop i: ${i}`); |
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
const varExample4 = () => { | |
for(var i=0; i<10; i++){ | |
setTimeout(() => { | |
console.log(`in var loop with timeout: ${i}`); | |
}, 200); | |
} | |
}; | |
const letExample4 = () => { | |
for(let i=0; i<10; i++){ |
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
const billy = "billy"; | |
billy = "bob"; //(will throw an error) |