본문 바로가기

분류 전체보기144

[백준] [c++] 1027번 고층 건물 // // main.cpp // acm // // Created by Nathan on 2020/09/21. // #include #include using namespace std; int main(int argc, const char * argv[]) { vector vec; int n; cin>>n; vector num; for(int i = 0; i >t; vec.push_back(t); num.push_back(0); } for(int i = 0; i < n; i++) { long double comp = -9999999999.0; for (int j = i + 1; j < n; j++) { long double t = (double)((double)(v.. 2021. 7. 10.
[Xamarin] set alpha at hex 100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C 50% — 80 45% — 73 40% — 66 35% — 59 30% — 4D 25% — 40 20% — 33 15% — 26 10% — 1A 5% — 0D 0% — 00 ex) Black 10% => "1A000000" 2021. 6. 16.
[C#, Xamarin] Call by value, deep copy if (!(BindingContext is DFDream dream)) return; MessagingCenter.Send(this, MessagingCenterMessages.AddWizardDream, dream)); 이렇게 하고 dream을 수정하니까 추가된 dream들이 다 같이 수정되어버림. DFDream에 Clone() 메소드를 추가. public object Clone() { return new DFDream { Id = this.Id, ProfileImage = this.ProfileImage, ... }; } (DFDream)dream.Clone()으로 넘김. private async void OnStartDreamButtonTapped(object sender, EventArgs e) .. 2021. 6. 16.
[Xamarin] Draw dashed(dotted) arc with SkiaSharp (not using AddArc()) var dottedArcSize = Math.Min(info.Width, info.Height); var dottdArcRect = new SKRect( StrokeWidth, StrokeWidth, dottedArcSize - StrokeWidth, dottedArcSize - StrokeWidth); var dottedArcLinePaint = new SKPaint { Color = Color.FromHex("#FF521F").ToSKColor(), StrokeWidth = 4.5f, }; var dotYRatio = 0.22; var dotLength = 0.03; var dotEmptyArcAngle = 60; for (var degrees = 0; degrees < 360; degrees += .. 2021. 6. 14.
[Xamarin] Draw Arc with SkiaSharp https://docs.microsoft.com/ko-kr/xamarin/xamarin-forms/user-interface/graphics/skiasharp/curves/arcs 원호를 그리는 3가지 방법 - Xamarin 이 문서에서는 SkiaSharp를 사용 하 여 세 가지 방법으로 원호를 정의 하는 방법을 설명 하 고 샘플 코드를 사용 하 여이를 보여 줍니다. docs.microsoft.com Start Angle : X축 0도 기준 시작각도 Sweep Angle : 그리고자 하는 호의 각도 (StartAngle를 시작으로 SweepAngle 만큼 호를 그림) 코드 식으로 나타내면, var _emptyArcAngle = 60; StartAngle = 90 + _emptyArcAngle / 2; S.. 2021. 6. 14.
[Xamarin] custom keyboard attachable view https://dvlv.tistory.com/121 기술스택 이제 xaml 코드 짜는 속도가 거의 공장 찍어내는 급이 되었다. 근데, 애니메이션, 플랫폼 스페시픽 한 코드를 짜다보니 현타가 자주온다. 복잡하고 긴 줄 수도 덤. 키보드 위에 붙는 스티키한 뷰 dvlv.tistory.com --> 전에 포스팅했던.. 키보드 위에 붙는 뷰를 개발했던 거를 팝업으로 바꿨음. https://pub.dev/packages/keyboard_attachable keyboard_attachable | Flutter Package A Flutter package to build widgets that can be attached to the soft keyboard. pub.dev (flutter의 keyboard_att.. 2021. 6. 9.
[Xamarin] Lottie (xaml) 중요 Animation="resource://Resources.Jsons.hooray.json?assembly=DreamforaV2" AnimationSource="EmbeddedResource" 2021. 5. 27.
기술스택 이제 xaml 코드 짜는 속도가 거의 공장 찍어내는 급이 되었다. 근데, 애니메이션, 플랫폼 스페시픽 한 코드를 짜다보니 현타가 자주온다. 복잡하고 긴 줄 수도 덤. 키보드 위에 붙는 스티키한 뷰 만들면서 또 현타옴. 자말 코드만 올려본다. (코드 비하인드는 더 거지같음 거의 한땀한땀 바느질한 느낌) None 곧 회사 스택을 flutter or swift native 로 갈아탄다. 두근두근 어떤 일이 펼쳐질까. 과연 xamarin 문제인가 내 손꾸락과 머리의 문제일까 ㅋ 2021. 5. 27.
오늘의 만나 https://apps.apple.com/app/id1547824358 ‎오늘의 만나 ‎* 매일 오늘의 묵상 구절을 제공합니다. * 매일 오늘의 맥체인 구절을 제공합니다. * 1독을 도와주는 맥체인 체크리스트 기능을 제공합니다. * 묵상을 메모하여 저장하고 공유할 수 있습니다. * apps.apple.com https://play.google.com/store/apps/details?id=com.manna.parsing2 오늘의 만나 - Google Play 앱 그리스도인의 매일의 묵상을 도와주는 앱입니다. play.google.com 2021. 5. 21.
[Xamarin] Xamarin.Forms iOS Distribution (2021) developer.apple.com/ Apple Developer There’s never been a better time to develop for Apple platforms. developer.apple.com Account 2021. 4. 21.