ããã§ã¯ãç§ããã©ãã¤ããæåã®ããæ¹ãç´¹ä»ãã¾ããããå人çã«éå»æ°å¹´ã«ããã£ã¦å¤§éã®Goã³ã¼ãã¨ä»ãåã£ã¦ããçµé¨ããéãããã®ã§ãããããã¯å ¨ã¦é常ã«ã¹ã±ã¼ã©ããªãã£ãããã¨æã£ã¦ãã¾ããç§ããã¹ã±ã¼ã«ãããã¨è¨ãã¨ãã¯æ¬¡ã®ãããªæå³ãããã¾ãã ã¢ããªã±ã¼ã·ã§ã³ãæ±ããç°å¢ã¯ãã¢ã¸ã£ã¤ã«ç°å¢ã®ä¸ã§å¤åãã¦ããã¾ããéçºã®3ã4ãæå¾ã«ãå ¨ã¦ããªãã¡ã¯ã¿ãªã³ã°ããå¿ è¦ãåºã¦ãããªã©ãèãããããªãã¯ãã§ããæ°ããæ©è½ã¯ç°¡åã«è¿½å ã§ããªãã¦ã¯æå³ãããã¾ããã ããªãã®ã¢ããªã±ã¼ã·ã§ã³ã¯å¤ãã®äººã ã«ãã£ã¦éçºããã¾ããå¯èªæ§ãé«ããç¶æãããããã®ã§ãªãã¦ã¯ãªãã¾ããã ããªãã®ã¢ããªã±ã¼ã·ã§ã³ã¯å¤§å¢ã®äººã ã«ä½¿ããã¾ãããã°ã¯å®¹æã«ç¹å®ã§ããä¿®æ£ã§ããªãã¦ã¯ãªãã¾ããã é·æçã«ã¿ãã¨ãããã®ãã¨ãéè¦ã«ãªããã¨ãããã¨ãç§ã¯ä»ã¾ã§ã«å¦ãã§ãã¾ãããå°ããªãã¨ã§ãã£ã¦ããå¤æ°ã«å½±é¿ãã¾
PostgreSQL9.6ã§contrib/pg_trgmã«å ¥ãword similarityã«ã¤ãã¦ã®ã¡ã¢ã§ãããªãªã¼ã¹ãã¼ãã¯ãã¡ãã Add support for "word similarity" to contrib/pg_trgm (Alexander Korotkov, Artur Zakirov) These functions and operators measure the similarity between one string and the most similar single word of another string. #ããããSimilarityæ¤ç´¢ã¨ã¯ï¼ ææ¸éã®é¡ä¼¼åº¦(ã©ãã ãä¼¼ã¦ããã)ãç®åºãã¦ãæå®ããé¾å¤ä»¥ä¸ã®é¡ä¼¼åº¦ãæã£ãæç« ãé¸æããã¨ããæ¤ç´¢ã§ãã PostgreSQLã®contrib/pg_trgmã使ãã¨å©ç¨ã§ããsimil
ãµã¨ unique 㪠key ãä½ãã®ã« django ã¯ã©ããã¦ããã ããã¨æã£ã¦é£ã®äººã¨ä¸ç·ã«èª¿ã¹ãã ã»ãã·ã§ã³IDã®ä½ãæ¹ - ã¹ã³ãããªã´ãã¨ãã¹ã¯éä¿¡ æå ã® 1.4.2 ã 㨠OS ã® pid ãåã£ã¦ãã³ã¼ãã¯è¦å½ãããªãã£ãã django.contrib.sessions.base.SessionBase ã« _get_new_session_key() ã¦ã¡ã½ãããçãã¦ããã ãã©ããã®ä¸ã§ã¯ django.utils.crypto ã«ãã get_random_string() ã使ããã¦ã¦å¤åããããã¼çæãã¦ãé¢æ°ã def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): """ Re
uuid 使ããï¼ã¨ããã¤ã£ãã¿ãèããã¦ãããã§ãã ã§ãã10æåç¨åº¦ã®ãæ軽ã«ä½¿ããã©ã³ãã æååãã»ããã¨ãã£ã¦ããã¾ãããã ã¢ã«ã¦ã³ãç»é²ããéã«ã¡ã¼ã«éä¿¡ã§ä½¿ããã¼ã¨ããuuid 使ã人ã£ã¦ããã¾ããã¾ãããã ã¨ããããã§ããããªã¨ãã«ä½¿ãã random_string é¢æ°ãä½ã£ã¦ã¿ã¾ããã import random def random_string(length, seq='0123456789abcdefghijklmnopqrstuvwxyz'): sr = random.SystemRandom() return ''.join([sr.choice(seq) for i in xrange(length)]) å®éã«å®è¡ãã¦ã¿ãã >>> random_string(10) 'krz58li2iv' >>> random_string(20) '4eriz0
Ruby2.3ã§å°å ¥ãããfrozen_string_literalãã¸ãã¯ã³ã¡ã³ãã§Immutable Stringãå®ç¾ãã ç®æ¬¡ Immutable String in Ruby3 追è¨ï¼2019-08-07ï¼Immutable String in Ruby2.3+frozen_string_literal ã®æ©è½ã試ã frozen_string_literalå ¥ãã®ã³ã¼ãfrozen_string_literalç¡ãã®ã³ã¼ãfrozen_string_literal ã¯ãã¡ã¤ã«æ¯ã«è¨å®ãããmutableãªStringãå®ç¾©ããã«ã¯ã©ããããããï¼ æ¹æ³1: String#dupæ¹æ³2: String#+@ã¾ã¨ãåèImmutable String in Ruby3Ruby3 ã§ã¯æååãããã©ã«ã㧠immutable ã«ãªãã¨ãã大ããªå¤æ´ãäºå®ããã¦ããï¼è¿½è¨ããï¼ã Ru
Emacs Lisp ã§ã®æååããã®æ¤ç´¢ç³»é¢æ°ãããå¿ããã®ã§ã¡ã¢ãã¦ãã ä¾ (setq string "aaabbb") ; æ£è¦è¡¨ç¾ã§æ¤ç´¢ (string-match "a+" string) 0ãâãæ¤ç´¢ã«æåããå ´åã¯éå§ä½ç½®ãè¿ã ; ä¸è´ããé¨åãåå¾ (substring string (match-beginning 0) (match-end 0)) "aaa"ãâãæå®ããé¨åã®æåå ; ä¸è´ããé¨åãç½®æ (replace-match "bbb" nil nil string) "bbbbbb"ãâãä¸è´ããé¨åãç½®æãã¦æ°ãã«åºæ¥ãæåå (let ( (s "123 I love emacs.")) (string-match "^\\([0-9]+\\) I love \\(.+\\)$" s) (match-string 0 s) ; => "123 I
Replace any character with a fixed char(make-string (length word) 0) replace-regexp-in-stringEmacs21 already has what you need: (replace-regexp-in-string "fo+" "baz" "da foo is foobared") => "da baz is bazbared" Direddired.el already has what you need: (require 'dired) (dired-replace-in-string "fo+" "baz" "da foo is foobared") => "da baz is bazbared" Splitting and Joining StringsYou can use the re
ãªã¹ãã®ç¬¬ä¸è¦ç´ ãã·ã³ãã«ãªãé¢æ°ã¨ãã¦èµ·åã§ããã®ããªï¼ã¨æã£ã¦ãããã ãã©ããéããããã ã¨ãããããprintlnãä¾ã¨ãã¦ã(symbol æåå) ã§ã·ã³ãã«ã¯ä½ãããããã $ clj Clojure 1.4.0 user=> (symbol? 'println) true user=> (= 'println (symbol (str "print" "ln"))) true ã§ããå®è¡ãã¦ãæå¾ ã®åä½ããã¦ãããªãããªãã§ã ããã user=> (println "hello") hello nil user=> ((symbol (str "print" "ln")) "hello") nil user=> (if true "yes" "no") "yes" user=> ((symbol "if") true "yes" "no") ArityException W
ã¦ã¼ã¶ãã¢ãããã¼ããããã¡ã¤ã«ã®ãã¡ã¤ã«åã決å®ããéããã¡ã¤ã«åãè¡çªããªãããã« ç¾å¨æå»ï¼ããªç§ï¼ããIDãçºè¡ããã¨ããæ¹æ³ãæãã¤ãã¾ããã è²ã ãããã¦ã¿ã¦ãä¸è¨ã®ã³ã¼ããå®æããã®ã§ãããç¾å¨æå»ã®æ°å¤ã62é²æ°ã«å¤æããã ããªã®ã§ãp2dhXa6ãããp2d9Wcoãã®ããã«ãã¡ã¤ã«ã®å é æåãã»ã¼p2ã§åºå®ããã¦ãã¾ãã¾ãã ãã®ã¾ã¾ã§ãè¯ãã®ã§ããããã¡ã¤ã«åã§å©ç¨åºæ¥ãæåã使ã£ã¦ãè¡çªããªãã¦ãã¼ã¯ãã¤è¦è¦çã«ãã©ã³ãã ã§ãããæååé·ãããçãIDãçæããæ¹æ³ã¯ãããã¾ãã§ããããã ç¾ç¶ã®ã³ã¼ã def uniqid() def dec62(num) table = [('0'..'9'),('a'..'z'),('A'..'Z')].map{|c| c.to_a }.flatten num > 61 ? dec62(num/62)+table[num%62
ã³ã³ãã³ãã¸ã¹ããã ç¡æã§ä½¿ããï¼HubSpotã®é¡§å®¢ãªã¹ãã®æ´»ç¨æ³ ç¡æã®ã¢ã³ã±ã¼ãä½æãã¼ã« æ¯è¼ï¼ã¾ã¨ã ç¡æãExcelã ãã³ãã¬ã¼ã æ¯è¼ï¼ã¾ã¨ã ç¡æã§ä½¿ãããã¼ãã¢ããªæ¯è¼ (Evernote / OneNote / Google Keep) ããããã®ç¡æWebä¼è°ã·ã¹ãã 5é¸ WebP Converter å¾¹åºè§£èª¬ï¼åå¿è ã§ãç´ãã«ä½¿ãã HubSpot ã¯ããã¼ã±ãã£ã³ã°ãã»ã¼ã«ã¹ããµã¼ãã¹ã®ããã®CRMï¼Continue reading å¤ãã®äººã®å£°ãèããã¨ã§æ¹åã§ãããã¨ãå¤ã ä¼æ¥ãå£ä½ãªã©éå¶ãã¦ãContinue reading å°±è·ã»è»¢è·ã«ã¯å¿ é ã¨ãªãå±¥æ´æ¸ã»è·åçµæ´æ¸ ããããå°±è·æ´»åãã¹ã¿ã¼ãContinue reading 便å©ãªãã¼ãã¢ããªã§å¹ççãªä»äºãããã ãã¤ã®æ代ãä»äºããã¦ãã¦ã¡Continue reading è¿å¹´ããªã¢ã¼ãã¯ã¼ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}