| import random | |
| from django.contrib.auth.hashers import make_password | |
| from django.core.management.base import BaseCommand, CommandError | |
| from api.models import Book, User, BookRecord | |
| from library import settings | |
| # To run this management command: |
Create a javascript file and link it to an html page so that you can run these functions in the console.
-
Write a function that takes a single argument and then logs that argument to the console.
-
Write a function called
sumwith two parameters that returns the sum of those 2 numbers. -
Write a function called
getLengththat takes one argument (a string) and returns its length
| // Intro JS: if/else | |
| // 1. What will be logged to the console when the statement below runs? | |
| let x; | |
| if (x) { | |
| console.log("True!"); | |
| } else { | |
| console.log("False!"); | |
| } |
| .yellow { | |
| background-color: #f4bf75; | |
| } | |
| .teal { | |
| background-color: #068D9D; | |
| } | |
| .lilac { | |
| background-color: #817E9F; | |
| } | |
| .teal-2 { |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).