suspenders appname --heroku true --github organization/project
cd appname
then generate first view and routes and start foreman
rails g controller.......etc
foreman start -p 8000
this will generate necessary envs...
import random | |
import os | |
import json | |
movies=[] | |
while True: | |
print("1. 영화를 추가") | |
print("2. 영화 보기") |
class Food: | |
def __init__(self, name, color): | |
self.name = name | |
self.color = color | |
class FoodList: | |
def __init__(self): | |
self.foods = [] | |
def add_food(self, name, color): |
import random | |
movies = [] | |
while True: | |
print("1. 영화 추가") | |
print("2. 영화 보기") | |
print("3. 랜덤 영화 고르기") | |
print("4. 종료") | |
number = int(input("번호?")) |
import random | |
movies = [] | |
while True: | |
print("*" * 30) | |
print("1. 영화 추가") | |
print("2. 영화 보기") | |
print("3. 랜덤 영화 고르기") | |
print("4. 감독 추가하기") |
import random | |
# list 복습하기 | |
movies = ["어벤져스", "헐크", "블랙 위도우"] | |
# 0번 부터 시작 | |
# 1번째에 있는 요소 접근하기 | |
print(movies[1]) | |
# 2번째에 있는 요소 변경하기 | |
movies[2] = "아이언맨" |
# 빈 리스트(list)를 movies라는 변수에 할당한다. | |
movies = [] | |
# 무한 반복(loop) | |
while True: | |
print("1. 영화 추가") | |
print("2. 영화 목록 보기") | |
print("3. 종료") | |
num = input("번호를 입력해 주세요: ") |
void main() { | |
// string interpolation | |
// 사전적 의미: 안쪽에 집어넣는다. / 내삽 | |
// 규칙 | |
// 1. expression의 값을 string 안에 넣기 위해서는 `${expression}` 의 형식을 한다. | |
// 2. expression이 identifier 이면 `{}` 를 생략할수 있다. | |
var name = 'eung jin lee'; | |
// 일반적인 expression |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# http://xiaofan.at | |
# 2 Jul 2015 - Xiaofan | |
# Machine name. | |
function box_name { |
suspenders appname --heroku true --github organization/project
cd appname
then generate first view and routes and start foreman
rails g controller.......etc
foreman start -p 8000
this will generate necessary envs...