We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
| type Attribute = 'byr' | 'iyr' | 'eyr' | 'hgt' | 'hcl' | 'ecl' | 'pid' | 'cid'; | |
| type Passport = { | |
| byr: string; | |
| iyr: string; | |
| eyr: string; | |
| hgt: string; | |
| hcl: string; | |
| ecl: string; | |
| pid: string; | |
| cid?: string; |
| function part1(input:string):number { | |
| const lines:string[] = input.split('\n'); | |
| lines.shift(); | |
| lines.pop(); | |
| const x:number = lines[0].length; | |
| const y:number = lines.length; | |
| const array:string[][] = []; |
| function part1(input: string):number { | |
| const lines:string[] = input.split('\n'); | |
| let result:number = 0; | |
| for(const line of lines) { | |
| if(line === "") continue; | |
| const infos = line.split(' '); | |
| const min:number = parseInt(infos[0].split('-')[0]); |
| function purchaseFunc() { | |
| // ... purchase logic ... | |
| const purchaseTag = { | |
| dataLayer: { | |
| event: 'purchase', | |
| name: data.orderName, | |
| price: data.totalPaymentPrice, | |
| import TagManager from 'react-gtm-module'; | |
| function purchaseFunc() { | |
| // ... purchase logic ... | |
| const purchaseTag = { | |
| dataLayer: { | |
| event: 'purchase', | |
| name: data.orderName, |
| import TagManager from 'react-gtm-module'; | |
| function signInFunc() { | |
| //...singIn logic... | |
| const signinTag = { | |
| dataLayer: { | |
| event: 'login', | |
| method: method, |
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
| //------LoginActivty.java-------- | |
| package com.example.android.foodrecipes; | |
| import android.arch.lifecycle.Observer; | |
| import android.arch.lifecycle.ViewModelProviders; | |
| import android.content.Intent; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; |
| def BubbleSort(li): | |
| list_length = len(li) | |
| #length가 4라면 | |
| #바깥 루프는 3번 돌아야 하므로 | |
| #range()는 0, 1, 2까지 즉 range(3)이 되야 하므로 | |
| #range(list_length-1)이 되어야 한다. | |
| for i in range(list_length-1): | |
| #안쪽 루프는 1번당 3-> 2-> 1 |
| class Retailer: | |
| price_of_computer = 100000 | |
| price_of_computer_from_vendor = 50000 | |
| def __init__(self, money, product, place): | |
| self.money = money | |
| self.product = product | |
| self.place = place |