본문 바로가기

카테고리 없음

2020-12-08 08시 개발자 글 모음 | "[prometheus] org.spr" 외 9개 이야기

라즈베리파이 기본사항 Raspberry Pi 기본 사항 by 김봉조

  • Raspberry Pi와 인터페이싱 MPU6050 (가속도계 + 자이로 스코프)


CodeReading - 1. PyTorch by 이동준

  • cpp class _TensorBase ( object ) : requires_grad : _bool shape : Size data : Tensor names : List [ str ] device : _device dtype : _dtype layout : _layout real : Tensor imag : Tensor T : Tensor ndim : _int _version : _int _base : Optional [ Tensor ] grad_fn : Any $ { tensor_method_hints }
  • py#L725 @ property def grad ( self ): """ This attribute is ``None`` by default and becomes a Tensor the first time a call to :func:`backward` computes gradients for ``self``
  • # Inherit from Function class LinearFunction ( Function ): # Note that both forward and backward are @staticmethods @ staticmethod # bias is an optional argument def forward ( ctx


2021 Gartner 기술 트렌드 by 주길재

  • in Eudaimonia and Co


testing-library로 페이지 테스트 작성하기 by 김수지 about React.js

  • signIn ) { return < Redirect to = "/home" / > ; } if ( loading ) { return < Loading / > } return ( < div data - test = "my_page" > < Photo onFetchPhotos = { handleFetchPhotos } / > < / div > ) ; } export default MyPage ;
  • } ; const server = SetupServer ( ) ; let stores = { } ; beforeEach ( ( ) => { server
  • stores } / > < MyPage route = { route } / > < / Provider > ) ; } ) ; debug ( ) ; expect ( queryByTestId ( "my_page" ) )


어떻게 R 속도를 높일 수 있을까 - 컴퓨터는 잘못이 없다 by 채규병

  • 이러한 부분을 보완하기 위해서 Rcpp 등의 패키지에서는 R에서도 C++ 함수를 작성할 수 있게 해 줍니다
  • R은 언제나 참조 변수가 아닌 값을 복사하기 때문에 객체를 생성할 때 리소스를 많이 사용합니다
  • 계산하는 로직과 rbind 하는 로직을 나누어서 최대한 각각의 패키지가 잘할 수 있는 것을 차용하려고 했습니다


[소소한 개발 일지] React Native 프로젝트에 루트 디렉토리 외부의 파일 임포트하기 by 조철제

  • exports = { transformer : { getTransformOptions : async ( ) = > ( { transform : { experimentalImportSupport : false
  • js import React from 'react' ; export default { test : 'test' } ;
  • js const path = require ( 'path' ) ; const extraNodeModules = { 'external' : path


[백준11657번] 타임머신 / Python3 by 홍석준 about 백준,Python

  • 만약 1번 도시에서 출발해 어떤 도시로 가는 과정에서 시간을 무한히 오래 전으로 되돌릴 수 있다면 첫째 줄에 -1을 출력한다
  • 그러고나서 시작 노드부터 접근할 수 있는 모든 노드에 대해서 거리를 계산해보고 더 작은 값으로 업데이트 해나가는 것을 V-1 번 반복하여 접근 가능한 방법으로 모두 확인해보는 방식으로 동작한다
  • cost in adj_list[cur]: if distance[node] > distance[cur] + cost: distance[node] = distance[cur] + cost is_update = True if not is_update: break if is_update: print(-1) else: for i in range(2


애플 주가 전망, 세계 시가총액 1위인 이유가 있다 ( + 애플 배당 ) by 백규철

  • 얼마나 애플이 돈을 쓸어 담고 있는지 알 수 있네요
  • 애플의 전망이 좋을 것이라는 것을 알 수 있죠
  • 이를 통해 알 수 있는 것은 11월이 오기 전


NestJS - Modules by 박민기

  • module' ; @ Module ( { imports : [ CatsModule ] } ) export class AppModule { }
  • providers : [ CatsService ] } ) export class CatsModule { constructor ( private catsService : CatsService ) { } }
  • provider' ; @ Module ( { providers : [ Connection ] } ) export class DatabaseModule { static forRoot ( entities = [ ]


[prometheus] org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver by 임용태 about Spring

  • ServletContextAware { // 문제의 그 메서드 protected void configureMessageConverters(List> converters) { } // configureMessageConverters 메서드에 messageConverters 객체 주입 protected final List> getMessageConverters() { if (this
  • add(new RssChannelHttpMessageConverter()); } if (jackson2XmlPresent) { Jackson2ObjectMapperBuilder builder = Jackson2ObjectMapperBuilder
  • add(new Jaxb2RootElementHttpMessageConverter()); } if (jackson2Present) { Jackson2ObjectMapperBuilder builder = Jackson2ObjectMapperBuilder