9월, 2016의 게시물 표시

MySQL datetime 날짜로 select하기

MySQL datetime 날짜로 select하기 select 컬럼명 from 테이블명 where date(컬럼명)='2018-01-23'; select 컬럼명 from 테이블명 where 컬럼명 between '2018-01-20' and '2018-01-24'; 위의 2가지 방법이 가장 기본적인 쿼리이다.

Ionic BarcodeScanner 를 이용한 QRcode 인식!

이미지
내 프로젝트에서 QRcode를 스캔하는 기능이 필요하여 그 기능을 추가했다. 간단하게 할 수 있다. 처음으로 콜도바 설치 후에 플러그인 설치 cordova plugin add https : / / github .com / wildabeast / BarcodeScanner .git 다음으로 index.html <script src = "js/ng-cordova.min.js" > </script>          <script src = "cordova.js" > </script> 위의 내용을 추가해준다. app.js 수정 angular . controller('QRController', function($scope, $rootScope, $cordovaBarcodeScanner, $ionicPlatform) { 2 3 4 5 6 7 8 9 10 11 12 13 $ionicPlatform.ready(function(){ $scope.scan = function() { $cordovaBarcodeScanner .scan() .then(function(barcodeData) { alert(JSON.stringify(barcodeData)); }, function(error) { alert(error); }); }; }); }) 만들고 싶은 곳에 버튼 생성 2 3 4 5 6 7 8 9 10 11 12 13 <ion-content style="background: #e8ebf1;" class="padding"

Github 팀으로 작업해보기(1) 프로젝트 올리기

이미지
 깃허브에서 팀으로 작업하는 방법을 간단하게 적어 두기위해 시작합니다~ 저는 맥을 사용합니다. 첫 번째로 터미널에서 생성한 프로젝트의 경로를 찾아 간다. 들어간 후에 $git init $git add . $git commit -m "commit comment" //commit 명령어로 버전관리를 한다. 커밋하는 설명을 적으면 된다.  다음에 깃허브 사이트에서 새로운 repository를 생성해 준다. $git remote add origin https://github.com/yourID/yourPJname.git //remote로 깃허브에서 생성한 repository의 https를 등록한다. $git push -u origin master //깃허브에 파일을 저장하는 명령어 이다.

이 블로그의 인기 게시물

3계층 구조( 3 Tier Architecture )

GET방식과 POST방식이란? ( PHP )

MySQL Index태우기가 뭐에요?