본문 바로가기

jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: # HTML 1 2 3 4 5 Javascript id가 없는 속성을 참조하려고 할 때 발생 demo : jsfiddle.net/z90rj2pn/
BigDecimal 합계 구하기(List, HashMap, Stream 사용) import java.io.InputStreamReader; import java.math.BigDecimal; //import java.math.MathContext; //import java.math.RoundingMode; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; class Main { public static void main(String args[]) { List payInfoList = new ArrayList(); List tempSumOrgPay = new A..
kendo ui jquery grid - checkbox row dataitem 삭제 javascript function // using timestamp insted of sequence function deleteRows(){ var grid = $("#grid").data("kendoGrid"); grid.selectedKeyNames().forEach(function (x) { //console.log(x); var item = grid.dataSource.get(x); delete grid._selectedIds[x]; grid.dataSource.remove(item); }); bpaGrid.refresh(); } index 가 아닌 name으로 dataitem을 찾고 삭제하는 함수 // Well known function on internet function deleteRow..
텍스트 파일에서 정규표현식 문자열 추출 using System; using System.Text.RegularExpressions; public class Program { public static void Main() { try { String text = "Reports\\20200225170617.csv"; Regex pattern = new Regex(@"([1-9][0-9]*)"); MatchCollection resultCollection = pattern.Matches(text); foreach(var item in resultCollection){ Console.WriteLine("{0}", item); } } catch(Exception ex) { Console.WriteLine(ex); } } }
tdes en/decrypt class public class TrippleDES { public string Encode(string str, string key, string iv) { byte[] keyByte = getKeyByteArray(key); byte[] ivByte = getKeyByteArray(iv); MemoryStream fin = new MemoryStream(Encoding.UTF8.GetBytes(str), false); MemoryStream fout = new MemoryStream(); fout.SetLength(0L); byte[] bin = new byte[100]; long rdlen = 0; long totlen = fin.Length; int len = 0; TripleDESCryptoService..
대상 폴더안의 파일에서 문자열 검색 # -*- coding: utf-8 -*- # 여러종류의 파일 encoding 이 존재하는 폴더를 검색 할때는 encoding별로 검색해야 제대로 검색된다. import pandas as pd import os import hanja from hanja import hangul from datetime import datetime file_encodings = ["cp949","utf8"] datetime = datetime.now().strftime("%Y%m%d%H%M00") target_texts = [] #검색할 문자열이나 배열 except_files = [] #제외할 파일명 def search_text(file_path,encoding_word): # print(file_path,file=sav..
HttpClearTextTraffic error api 28이상에서는 appmanifest.xml 에서 application > httpcleartext = true 만 적용됨. network_security_config.xml 에서 개별 적용이 안먹힘.
분기복리 + 추가불입 import locale locale.setlocale( locale.LC_ALL, '' ) base = 36000000#기본 금액 rate = 0.024#금리 tax = 0.846#세금 monthly_add = 300000#월불입금 yearly_Add = 600000#년불입금 year = 15#기간(년) max_loop = year * 4 #분기 for month in range(0, max_loop): current_benefit = (base + monthly_add) * rate * tax base = (base + monthly_add) * (1 + rate * tax) if month % 4 == 0: base = base + yearly_Add print("") amt = locale.cur..