.emacs.dãæ´çãã¦ãã¦ãå¤ãããã±ã¼ã¸ãæ®ã£ã¦ãããããã¨string-to-intããªãã¨æãããã éã« (defalias 'string-to-int #'string-to-number) ã追å ãã¦åé¿ã
.emacs.dãæ´çãã¦ãã¦ãå¤ãããã±ã¼ã¸ãæ®ã£ã¦ãããããã¨string-to-intããªãã¨æãããã éã« (defalias 'string-to-int #'string-to-number) ã追å ãã¦åé¿ã
iOS 12ã®Safariã§ã¯ARãªãã¸ã§ã¯ã (usd ãã©ã¼ãããï¼)ããã¬ãã¥ã¼ãããã¨ãã§ããã aã¿ã°ã§usdzãã¡ã¤ã«ãæå®ãã¦ããã®ä¸ã«imgã¿ã°ãããã°åæã«ãã¬ãã¥ã¼æ©è½ãæå¹ã«ãªãã ã㢠: AR Quick Look Example html <a href="path/to/stratocaster.usdz"> <img src="path/to/stratocaster.jpg" width="250" height="250"> </a> JavaScriptã§ARæ©è½ãæå¹ãã©ããå¤æãã /* from Apple's AR Quick Look Gallery */ (function () { var isRelAR = false; var a = document.createElement('a'); if (a.relList.support
ã¨ããããdocker, dockerfile-mode, docker-compose-mode, docker-trampã®4ã¤ãã¤ã³ã¹ãã¼ã«ããã ã©ããlist-packagesã§ãã¼ã¯(iãã¼)ãã¦ãã¤ã³ã¹ãã¼ã«(xãã¼)ã§ããã ãªãä»ã¾ã§ããããæ¢ãã¦ä½¿ããã¨ãã¦ããªãã£ãã®ãããã ããããã®è£è¶³ SpotifyãSilexã¨æåã©ãããä½ã£ã¦ãããã§ããã github.com M-x docker ã§docker ãµãã³ãã³ããä¸éãEmacs風ã«å®è¡ã§ãããç´ æ´ãããã (require 'docker) github.com Dockerfileç¨ã®ã¢ã¼ã (require 'dockerfile-mode) (add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode)) github.com
user.name ã§ã¯ãªãã credential.username ãè¨å®ãã¦ããã°GitHubã«æ¥ç¶ããæã®ã¦ã¼ã¶ã¼åãæå®ã§ããã git config credential.username peccu osxkeychainã使ã£ã¦ããå ´åã¯å¥ã®ãªãã¸ããªã使ãã¨ãã«ä½¿ã£ãè¨å®ãå¼ãç¶ããã¦ããããªã¨ã©ã¼ãåãã(superuserãã) remote: Permission to username1/repo.git denied to username2. fatal: unable to access 'https://github.com/username1/repo.git/': The requested URL returned error: 403 superuser.com Acceptedãããªãåçãæ±ãã¦ãããã®ã ã£ãã
htop使ãã®ã«ã¤ã³ã¹ãã¼ã«ããã®é¢åã ãªã¨æã£ã¦ãã®ãã¤ããªãå ¥ã£ã¦ããã³ã³ãããæ¢ãã¦ä½¿ã£ã¦ããã tmuxã§èµ·åãã£ã±ãªãã«ãã¦ãããã³ã³ããã®ãã°ãã¡ã¤ã«ã14GBã¨ã巨大åãã¦ããã èµ·åæã«ãã°ãã¡ã¤ã«ã®ãµã¤ãºãæå®ãã¦åé¿ããã docker run --rm -it --log-opt max-size=1m --pid host frapsoft/htop References docs.docker.com github.com
moment.jsã§æ¥ä»å¨ãã®å¦çãæ¸ãã¦ãã¦ã1é±ç®ã®æåãããããã£ãã å¹´ã®æå®ãYYYYããggggã«å¤æ´ããã°æå¾ ããæåã«ãªã£ãã ç¶æ³ æ¥ä»ãã å¹´ï¼é±çªå· ãæãåºãã¦å©ç¨ãã¦ããã moment.jsã®ãã©ã¼ãããã§ãã YYYYwwã ééã 2018/12/30ã¯2019å¹´ã®1é±ç®ã«ãªãã®ã§æå¾ ããåºå㯠201901ã ã£ããã YYYYã¯2018ã«ãªãã æ£è§£ æ£ãã㯠ggggwwããããmoment.js ãã®ããã®ãã©ã¼ãããèå¥åãç¨æãã¦ããã 大æåã¨å°æåã®éã㯠ISOã§è¦å®ãããé±çªå·(GGGG, WW)ã¨ããã±ã¼ã«ã«å¿ããé±çªå·(gggg, ww) åè Format | Moment.js | Docs Week year, week, and weekday tokens | Moment.js | Docs
macOS High Sierraã10.13.6 (17G65)ã«ã¢ãããã¼ããã¦ããåèµ·åãã㨠YaraScanServiceãæ´ãã¦ããã å®æ ã¯ãã®è¾ºãã ã£ãã /System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/Contents/MacOS/YaraScanService /System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/Contents/Frameworks/yara.framework/Versions/A/yara MRT.appã¯Malware Removal Toolã®ãã¨ããããã©ããã§ããããªãã¡ã¤ã«ãçã£ç«¯ããåç §ãã¦ããã 30åãããã°çµäºããããã§å®
ããã¯ã¢ãããã¡ã¤ã«ã®ãã¼ãã¼ã·ã§ã³ã¨ããããä¿ææ¹éãTimeMachineã®ããã«ãããã ãã®é¨åã Hourly backups for the past 24 hours Dayly backups for the past month weekly backups for all previous month ã¾ã1æéããã«ããã¯ã¢ãããã¡ã¤ã«ãä½æãã¦ããã¨ããåæã§ãäºæ¥å以åã¯ä¸æ¥ä¸ãã¡ã¤ã«ã ãæ®ããã¨ããé¨åãã·ã§ã«ã®ã¯ã³ã©ã¤ãã¼ã«ããã ãã¡ã¤ã«å㯠backup_YYYYmmdd_HHMMDD ã®ãããªå½¢ãæ³å®ããæ¯æ¥0æã®ãã¡ã¤ã«ãæ®ããã¨ã«ããã ls | grep 'backup_' \ | grep -v $(date '+%Y%m%d') \ | grep -v $(date -d '-1 day' '+%Y%m%d') \ | grep -v _000
ãµã¨ã·ã§ã¼ãã«ãããã¼ã¨é¢æ°ã®çµã¿åãããEmacs風ã«å®ç¾©ã§ããã便å©ãããªããã¨æãå§ããã ã³ã¼ãã¯æ¸ãã¦ããªãã Emacsã§ã®å®ç¾©ã¤ã¡ã¼ã¸ ã¢ã¼ãç¨ãã¼ããããä½æ (defvar some-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "q") 'some-quit) (define-key map (kbd "n") 'some-next) (define-key map (kbd "p") 'some-previous) (define-key map (kbd "RET") 'some-open) (define-key map (kbd "e") 'some-edit) map) "Keymap for some mode.") ãã¼ãããã®é©ç¨ (use-local-map some-m
javascript:(function(){alert('M-C-[key]');var styleElem=document.head.appendChild(document.createElement('style'));styleElem.innerHTML='a[accesskey]:after,button[accesskey]:after,input[accesskey]:after,label[accesskey]:after,legend[accesskey]:after,textarea[accesskey]:after{margin-left:0.1em; content: "["attr(accesskey)"]";}';})() javascript:(function(){ alert('M-C-[key]'); var styleElem=document.
Unixç³»ã§ã¯p7zipã¨ããããã±ã¼ã¸ã«ãã¼ãããã¦ããã¨ã®ãã¨ã # install brew install p7zip # archive 7z a archive.7z archive/ # or shorthand 7z a archive{.7z,} # extract 7z e archive.7z å§ç¸®çã®é«ããã©ã¼ããããã°ã°ã£ã¦åºã¦ãããã®è¨äºãéµåã¿ã«ããã Benchmarked: Whatâs the Best File Compression Format?
ã¢ã¯ã»ã¹ã§ããªããªã¢ã¼ããªãã¸ããªãã¯ãã¼ã³ãããã£ã¬ã¯ããªãåé ããã¢ã¯ã»ã¹ã§ãããªãã¸ããªã«ãã©ã¼ãªã³ã°ãããããªç¶æ³ã åæ cloneæ¸ã¿ ãªã¢ã¼ã(origin)ã¸ã¯ã¢ã¯ã»ã¹ã§ããªã ãã¼ã«ã«ã¯masterãã©ã³ãã®ã¿ ãªã¢ã¼ãã®ãã©ã³ãã¯fetchæ¸ã¿(ãã§ãã¯ã¢ã¦ãå¯è½) ãã£ãã㨠ã¢ã¯ã»ã¹ã§ãããªãã¸ããªãä½æ (以ä¸åé ãããã£ã¬ã¯ããªã§ã®ä½æ¥ãSourceTreeããéããã¿ã¼ããã«ãªã©ã§ã®æ³å®) ä½æãããªãã¸ããªãæ°ãããªã¢ã¼ã(our)ã¨ãã¦è¿½å Gitã§ã¯ãªã¢ã¼ããªãã¸ããªãè¤æ°ç®¡çã§ããã®ã§ãããã©ã«ãã®origin(ã¢ã¯ã»ã¹ã§ããªãç°å¢)ã«å ããourã¨ããååã§ã¢ã¯ã»ã¹ã§ãããªãã¸ããªã®URLã追å git remote add our https://.....reponame.git ããã¯ãã¼ã«ã«ã®gitã®è¨å®ãæ¸ãæããã ã ãªã¢ã¼ã(origi
postgresã§varcharã®ã½ã¼ãé ãæååã½ã¼ããããªãã¦æ°å¤ã½ã¼ãã¿ããã«ãªã£ã¦ããã collate "C" ãorderå¥ã«è¿½å ããã°ãã¤ããªã¼ãã¼ã§ã½ã¼ããã¦ãããæå³ããé ã«ã½ã¼ããããã postgres=# select name from test order by name; name ------ ã ã ãã ãã (4 rows) postgres=# select name from test order by name collate "C"; name ------ ã ãã ã ãã (4 rows) ééããã¨ã©ã¼ãåèURLãªã© postgres=# select name from test order by name collate "ja_JP"; ERROR: collation "ja_JP" for encoding "UTF8" d
æ¨æ¥ã®æ¥ä»æååãå¾ã (format-time-string "%Y-%m-%d" (time-add (current-time) (* -60 60 24))) ;; => 2018-05-07 Time Calculations - GNU Emacs Lisp Reference Manual stackoverflow.com
ä¹ ãã¶ãã«MewããGmailã使ããã¨ããããæ£ãããã¹ã¯ã¼ããå ¥åãã¦ã IMAP Password is wrong! ã¨æãããã å¥ã®ã¯ã©ã¤ã¢ã³ãã§ç¢ºèªããã¨Gmailå´ã«ã¯ less secure appã ãããããã¯ãããã¨ã Gmailå´ã§less secure appã許å¯ãã¦ãåãçç¶ãç¶ããã®ã§Mewã®æ´æ°ãstunnelã¨æ´æ°ããã¨ãããæ¥ç¶ã§ããããã«ãªã£ãã Mewã¯5.xããããã6.7ã¾ã§ä¸ãã£ããå¤ãããããã stunnelã¯5.41ãã5.44ã % brew upgrade stunnel ==> Upgrading 1 outdated package, with result: stunnel 5.41 -> 5.44 ãã³ãã«ãªã£ãã®ã¯ãã®è¨äº www.ict4g.net
beforeunload ã¤ãã³ãããããã°ããããã§ãã ãµã³ãã«ã³ã¼ã var modified = false; window.addEventListener('beforeunload', function (e) { if(!modified){ return; } var message = "You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?"; e.returnValue = message; return message; }); document.querySelectorAll('input').forEach(function(input) { input.addEventListen
ä»ãªã«ããã¦ããããEmacsã®å¤ã§ã確èªããããã«emacsclientããã¿ã¹ã¯åãåãåºãã¦ãBitBarã«è¡¨ç¤ºããããã«ãã¾ããã è¦ (server-start)ã§ãã #!/bin/bash # <bitbar.title>org-clock current task</bitbar.title> # <bitbar.version>v1.0</bitbar.version> # <bitbar.author>peccu</bitbar.author> # <bitbar.author.github>peccu</bitbar.author.github> # <bitbar.desc>Displays org-clock current task</bitbar.desc> # <bitbar.image></bitbar.image> TASK=$(/Application
Vue.jsã§HTMLã®å±æ§ã«ãªãã¸ã§ã¯ããå¤æ°ã®å¤ãå²ãå½ã¦ãéã«ãv-bindã¨ãããã®ã使ãã¾ãã <div v-bind:class="{red: isWarn}">è¦åãªã赤ã</div> ãã㯠isWarn ã¨ããå¤æ°ã çã®å ´åã«ãã®ã¿ã°ã®classå±æ§ã«redã追å ãããä¾ã§ãã ãã® v-bind:class ã«ãã : ãXMLã¨ãã¦ã¯NGãããããã³ãã¬ã¼ããXMLã§è¨è¿°ãããã¬ã¼ã ã¯ã¼ã¯ã§å°ãã¾ããã 解決çã¯ãv-bindå±æ§ã«ããä¸æ®µæ·±ããªãã¸ã§ã¯ããæå®ããã¨ã®ãã¨ã ä¸ã®ä¾ã¯ä¸ã®ä¾ã¨åãæå³ã«ãªãã¾ãããããªã :ã使ããªãã®ã§å¤§ä¸å¤«ã <div v-bind="{class: {red: isWarn}}">è¦åãªã赤ã</div> åè: Vue.js#v-bind ã® Exampleã®ã¨ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}