https://danco.tistory.com/53 [NodeJs] nodemon 설치 개발시에 코드를 수정하고 서버를 껐다가 다시 켜야하는게 매우 번거롭기 때문에 코드 수정이 있으면 서버를 자동으로 restart해주는 모듈인 nodemon을 설치하는 방법은 다음과 같다. npm install nodemon -g node.. danco.tistory.com 글에 나온것처럼 npm install nodemon -g로 설치했는데, npm ERR! path /Users/sweetdev/.npm-global/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission..
This is what's called a "variadic parameter." It means that the function can take more than one value of that type. The function's block will have access to an array-like structure (I can't remember if it's an actual array or not), which can be iterated on and used to perform some work on all of the members in it. So in the example you posted, that function can take a variable number of Ints, pa..
https://medium.com/@codenamehong/swift-underscore-90dcbec5072f Swift underscore(_) 함수에서의 _ (underscore) medium.com Swift는 함수의 argument 앞에 특정 라벨을 붙일 것을 요구합니다. argument의 이름을 붙인다고 생각하면 쉬울 것 같습니다. 다만, 따로 라벨을 쓰지 않으면 default값으로 함수 선언시 사용한 argument를 라벨로 사용합니다. 그렇다면 두 번째 함수 호출은 어떻게 된 것일까요? 먼저 name: 부분은 argument 작성시 name person: String 부분에서 따로 라벨을 설정해준 것을 확인할 수 있습니다. 자 그 다음은 _ 입니다. 보이시나요? greet 함수 호출시 파라..
## defer 블록 특징 1. 함수 종료 직전에 실행 2. defer 블록이 읽히기 전에 종료 되면 실행 되지 않음. 3. 가장 마지막에 호출된 defer 블록 부터 역순으로 호출 된다. 4. defer블록을 중첩으로 사용할 때, 바깥쪽 블록 부터 호출 된다. https://gogorchg.tistory.com/entry/iOS-Swift-defer-블록 [iOS] Swift defer 블록 defer 블록 : 메소드 에서 코드의 흐름과 상관 없이 가장 마지막에 실행되는 블록 SQLite3를 사용할 때 참고 하면 좋을 듯 하다. func dbExecute(dbPath: String) { // 1 var db: OpaquePointer? = nil guard sqli.. gogorchg.tistory.c..
gpu성능이 떨어진다.. 체감 가능할 만큼 ㅠ
static같은게 아니고, 그냥 재선언 재 할당이 안되는 변수이다. 무엇...
[영상리뷰]AWS를 쓸까? Heroku를 쓸까? 그 선택의 기준은? https://www.youtube.com/watch?v=NTDhBh1SdZ4 일단, 먼저 헤로쿠와 AWS는 종류가 다르다는걸 알아야한다. 헤로쿠는 ‘platform as a service’이다. 그 말은, 우리는 ‘코드만 업로드 하면 된다!’는 뜻이다. 서버 세팅이 5분 안에 가능해진다…!! 엄청난 장점이다. 반면, AWS(그중에도 EC, Elastic Computing)은 infrastructure as a service 이다. 헤로쿠처럼 플랫폼이 아니라, 인프라, 즉 ‘서버’를 위한 비용을 결제하는 것이다. 우리가 생각하는 서버 컴, 우분투나 윈도우를 깔 수 있는 서버를 돈 주고 사는거라고 생각하면 쉽다. 서버를 세팅하는게 힘들듯 ..