본문 바로가기

728x90

엉터리 개발 이야기

sequelize raw query 간헐적 동작 안함 mysql에서 rownum 사용시 쿼리 결과가 나올 때 있고 안나올 때 있음 @rownum:=@rownum+1 rn 초기화를 where 절에서 하게되면 ex) WHERE (@rownum:=0)=0 으로 하게되면 seqeulize.query('SELECT @rownum:=@rownum+1 rn FROM prices WHERE (@rownum:=0)=0') 하면.. 결과가 나왔다 안나왔다 함... FROM 절에다가 선언하면 정상적으로 결과가 나옴 seqeulize.query('SELECT @rownum:=@rownum+1 rn FROM prices, (@rownum:=0)=0') temp) 이상~ 더보기
[Angular7] e2e Test [Angular7] e2e //Input Tag에 abc 입력 후 value 값이 동일한지 확인 it('some test', async () => { const input1 = element(by.id('input1')); await input1.sendKeys('abc'); expect(await input1.getAttribute('value')).toEqual('abc'); }); 더보기
[Angular7] e2e test webdriver-manager connect error 날 경우 node_modules/protractor/node_modules/webdriver-manager/bin 이동 node webdriver-manager update node webdriver-manager start npm run e2e 더보기
npx를 활용하여 angular cli 로 프로젝트 생성하기 우선 npx가 설치되어 있어야 한다. https://github.com/zkat/npx zkat/npx execute npm package binaries. Contribute to zkat/npx development by creating an account on GitHub. github.com npx -p @angular/cli ng new ABCproject ※ The "path" argument must be of type string 이 나올 경우에는 최신버전으로 업데이트 한다. 더보기
chartjs new charts Chart.defaults.bignumberbar = Chart.defaults.bar; var custom = Chart.controllers.bar.extend({ draw: function(ease) { Chart.controllers.bar.prototype.draw.call(this, ease); var ctx = this.chart.chart.ctx; var canvas = this.chart.chart.canvas; ctx.save(); this.chart.chart.titleBlock.top = -10;ctx.font = '30px Arial'; ctx.fillText('Test1234', (this.chart.width / 2) * 0.65, this.chart.height / 2); c.. 더보기
Gridster 번들링 webpack 설정... npm i --save dsmorse-gridster jquery index.jsimport $ from 'jquery';import 'dsmorse-gridster/dist/jquery.dsmorse-gridster';import 'dsmorse-gridster/dist/jquery.dsmorse-gridster.min.css';import './css/demo.css';window.$ = $; main.htmlDOCTYPE html> Babel Demo var gridster; $(function () { gridster = $(".gridster > ul").gridster({ widget_margins: [5, 5], widget_base_dimensions: [100, .. 더보기
webpack 설정 참고 사이트 https://beomy.tistory.com/42 https://www.zerocho.com/category/Webpack/post/58ac2d6f2e437800181c1657 더보기
npm 모듈 publish npm 모듈 publish https://vuejsdevelopers.com/2017/07/31/vue-component-publish-npm/ https://codeburst.io/fastest-way-to-publish-a-vue-js-component-on-npm-d58f59e185f8 더보기

728x90