키워드 | 용도 |
---|---|
fn |
(parenless) 함수/클로저 선언 |
if |
분기문 |
for |
반복문 |
else |
분기문의 별도 조건 혹은 for 의 정상 종료 구문 |
break |
반복문 탈출 |
return |
조기 반환 |
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
package main | |
import ( | |
"log" | |
"flag" | |
"fmt" | |
"strconv" | |
"sync" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"math/big" | |
"os" | |
"strconv" | |
"time" | |
) |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"math/big" | |
"os" | |
"strconv" | |
"time" | |
) |
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
set nocompatible | |
filetype off | |
set hlsearch | |
set scrolloff=3 | |
set nobackup | |
set noswapfile | |
set bs=eol,start,indent | |
set autoread | |
set smarttab | |
" set smartindent |
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
#!/bin/bash | |
echo 이 쉘 스크립트는 리눅스에서 MiNET을 쉽게 설치해줍니다 | |
echo 쉘 스크립트 제작자: 푸른곡괭이, MiNET 제작자: NiclasOlofsson님 | |
echo 정말 간단하게 만들어진 쉘 스크립트입니다 정말로 하루만에 만들었습니다 | |
echo $(date) 설치를 시작합니다... | |
echo Git가 설치되어있나요? \(네/아니요\) | |
read gitanswer | |
if [ $gitanswer -eq 네 ] | |
then |
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
#!/bin/bash | |
#Needed to use aliases | |
shopt -s expand_aliases | |
type wget > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then | |
if [ "$IGNORE_CERT" == "yes" ]; then | |
alias download_file="wget --no-check-certificate -q -O -" | |
else | |
alias download_file="wget -q -O -" |
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
from os import system | |
from sys import exit | |
from platform import platform | |
from random import choice | |
from time import time | |
from math import floor | |
from sys import version_info | |
if version_info[0] != 3: | |
print('Python 3 required') |
NewerOlder