본문 바로가기

카테고리 없음

2020-12-30 06시 개발자 글 모음 | "2021년 투자 방향" 외 14개 이야기

[Design Pattern] GoF 생성 패턴 - 싱글톤 패턴(Singleton Pattern) by 김슬기 about Design Pattern

  • 자바에서는 생성자를 private으로 선언하고 getInstance() 와 같은 함수를 통해 인스턴스를 제공해주는 것이 일반적이다
  • Singleton 클래스는 getInstance() 메소드를 통해 유일한 인스턴스를 제공한다
  • public class Singleton { private static Singleton instance ; private String name ; private int count = 0 ; private Singleton () { count ++; name = "This is the only reference : " + count ; } public static Singleton getInstance () { if ( instance == null ){ instance = new Singleton (); } return instance ; } public String getName () { return name ; } }


Arduino 와 Processing 나침반 만들기 by 김봉조

  • 073; heading += declination; // Correcting when signs are reveresed if(heading <0) heading += 2*PI; // Correcting due to the addition of the declination angle if(heading > 2*PI)heading -= 2*PI; headingDegrees = heading * 180/PI; // The heading in Degrees unit // Smoothing the output angle / Low pass filter headingFiltered = headingFiltered*0
  • /* Arduino LSM9DS1 - Simple Magnetometer This example reads the magnetic field values from the LSM9DS1 sensor and continuously prints them to the Serial Monitor or Serial Plotter
  • 40); // Prints the value of the heading on the screen delay(40); } // starts reading data from the Serial Port void serialEvent (Serial myPort) { data = myPort


[GSP] QWIKLABS GSP787 - Build and Optimize Data Warehouses with BigQuery: Challenge Lab by 강전희

  • oxford PARTITION BY date OPTIONS( partition_expiration_days=90 ) as SELECT * FROM `bigquery-public-data
  • AVG( residential_percent_change_from_baseline) as avg_residential FROM `bigquery-public-data
  • oxford where population is null UNION ALL SELECT distinct country_name from covid


[PowerShell] 도메인 확인하기 (whois) by 강전희

  • 3}") { Write-Verbose "IP Lookup!" if($query -notmatch " ") { $query = "n $query" } if(!$server) { $server = "whois
  • in case we can't get an answer at the forwarder if(!$cachedResult) { $cachedResult = $result $cachedServer = $server } $server = $matches[1] $query = ($query -split " ")[-1] $maxRequery-- } else { $maxRequery = 0 } } else { $maxRequery = 0 } } finally { if($stream) { $stream
  • count -lt 5) { Write-Warning "Original Result from ${cachedServer}:" $cachedResult } $ErrorActionPreference = $EAP } } # Set-Alias whois Get-WhoIs


Intellij 단축키 꿀팁 by 서진규 about Intellij


    [Programmers] 완주하지 못한 선수 by 김도하


      [Web] 동영상 파일을 GIF로 변환하기 (GIF 변환 웹 사이트 사용) by 우정태

      • 동영상을 GF로 만드는 방법은 크게 동영상을 GIF로 변경해주는 사이트를 사용해주는 방법과 프로그램을 사용하는 방법이 있습니다
      • 아래에 링크된 사이트에 접속하여 가장 첫번째있는 탭 Video to GIF를 선택하고 변환 할 파일을 선택한 뒤 Upload video
      • 위에 업로드 된 영상을 재생하여 움짤(GIF)파일로 만들 시간대 Start time(시작 시간) End time(종료 시간)을 선택하고 Convert to GIF


      해킹포터 - 슬리데린은 싫어요 by 김정윤


        국민연금 보험료 본인부담금(기여금) 개별납부해본 후기 by 성대현

        • LibreOffice Korean Team
        • GNOME Foundation Member
        • My native language is Korean(한국어) My hobby is Learning Language(English


        자동사 by 김이삭

        • 위의 동사들은 사전적으로 타동사 뜻이 없으므로 원칙적으로 전치사 없이는 목적어를 가질 수 없다
        • 전치사와 함께 쓰이면 뜻이 달라지는 자동사
        • 위의 동사들은 사전적으로 타동사 뜻도 있지만 자동사 뜻이 우선인 동사들이다


        JS 1단계 문자열 내림차순으로 배치하기 by 원동휘

        • const solution = ( s ) => { let answer = '' ; answer = s
        • b ) => { if ( a < b ) return 1 ; if ( a > b ) return - 1 ; if ( a === b ) return 0 ; } )
        • join ( '' ) ; return answer ; } console


        2021 가성비 데스크탑 pc 추천 Top6 by 왕형준


          코틀린[Kotlin] #04_함수 정의와 호출 by 문범우 about Kotlin

          • 1 2 3 4 5 6 7 8 9 10 11 12 13 open class View{ open fun click() = println ( "View clicked!" ) } class Button: View() { override fun click() = println ( "Button clicked!" ) } fun main(){ val view: View = Button() view
          • 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 open class View{ open fun click() = println ( "View clicked!" ) } class Button: View() { override fun click() = println ( "Button clicked!" ) } fun View
          • 1 2 3 4 5 6 7 8 9 10 fun test(vararg values: String ){ for (s in values) println (s) } fun main() { test( "1"


          2020년을 마무리하며.. by 문형환

          • 2020년은 코로나로 시작해서 코로나로 끝나는 한 해였습니다
          • 코로나는 실로 삶의 많은 부분들을 바꾸어 놓았습니다
          • 저는 올해 주식을 통해 연봉의 몇배가 되는 수익을 거두었습니다


          2021년 투자 방향 by 신재헌

          • 유럽은 자유로운 국경 이동으로 인해 코로나 바이러스의 위협이 좀 더 지속될 가능성이 있다고 생각한다
          • 유럽은 코로나 이외에도 여러모로 해결해야할 문제가 많기 때문에 투자하지 않을 계획이다
          • 그리고 또 미국과 유럽을 제외한 선진국인 일본 주식은 현재까지의 퍼포먼스 자체는 좋은 상태이나 몇가지 문제가 있는 관계로 투자하지 않을 계획이다