개발 썸네일형 리스트형 OSX Laravel Valet 세팅 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install php/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install composerexport PATH="$HOME/.composer/vendor/bin:$PATH"valet installcomposer global require laravel/installer설치 완료 후, 해당 프로젝트로 이동valet parkhttp://{project_name}.test 로 접속 확인 더보기 OSX Laravel Install 1. Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2. Install PHPbrew install php 3. Install Composerbrew install composer 4. Make Laravel Projectcomposer create-project laravel/laravel example-app 5. Set Laravel Projectphp artisan key:generatephp artisan serve 더보기 ubuntu nginx error log sudo nano /var/log/nginx/error.log 더보기 Swift - Alamofire - REST API pod 'Alamofire', '~> 5.5' pod 'SwiftyJSON', '~> 4.0' GET private func requestGet(url:String, completion:@escaping (APIResult)->Void) { self.request = AF.request(url, method:.get, encoding: JSONEncoding.default) self.request?.validate(statusCode: 200..Void) { print("\n\n") print("REQUEST POST") print(url) self.request = AF.request(url, method:.post, parameters: params, encoding: JSONEncoding.defa.. 더보기 ubuntu php 버전 변경하기 php 설치는 알아서, 예를 들면 sudo apt install php7.3 이런식으로 php 버전별로 설치, 만약 ubuntu에 여러 php 버전이 설치된 상태고, 서버에서 서비스중인 php의 버전을 변경하고 싶다면, sudo update-alternatives --config php 실행하면 설치된 php가 버전별로 나열되고, 해당 버전 선택하면 해당 버전으로 변경된다. 안될시, apache, nginx 재시작 더보기 키보드 올라올때 화면 대응하기 pod 'IQKeyboardManagerSwift' https://github.com/hackiftekhar/IQKeyboardManager GitHub - hackiftekhar/IQKeyboardManager: Codeless drop-in universal library allows to prevent issues of keyboard sliding up and Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more. - Git.. 더보기 Swift IOS 앨범 권한 import Photos switch PHPhotoLibrary.authorizationStatus() { case .authorized: print(".authorized") self.fetchAll() case .denied: print(".denied") permissionView.isHidden = false case .notDetermined: PHPhotoLibrary.requestAuthorization({ switch $0 { case .authorized: print("notDetermined .requestAuthorization") DispatchQueue.main.async { self.fetchAll() } case .denied: print("notDetermined .denie.. 더보기 ios swift get app version var version: String? { guard let dictionary = Bundle.main.infoDictionary, let version = dictionary["CFBundleShortVersionString"] as? String, let build = dictionary["CFBundleVersion"] as? String else {return nil} let versionAndBuild: String = "vserion: \(version), build: \(build)" return versionAndBuild } 더보기 Laravel Vue Spa 기본 구조 composer create-project --prefer-dist laravel/laravel {name} npm install npm run dev npm install vue npm install vue-router /route/web.php Route::get('/{any}', 'ViewsController@index')->where('any', '.*'); /app/http/controllers/ViewsController.php public function index() { return view('index'); } /resource/views/index.blade.php Vue SPA Demo /resource/js/app.js import Vue from 'vue' import VueRou.. 더보기 [최종] Jquery 다중 파일 업로드 미리보기 제공하기, 삭제, 순서변경, POST업로드 업로드 이미지 미리보기 Mustache 라는 스크립트 템플릿을 사용했습니다.필요하신 분은 구글에 Mustache.js을 검색해서 첨부해주세요. 더보기 이전 1 2 3 4 다음