amp-web-push-widget button.amp-subscribe { display: inline-flex; align-items: center; border-radius: 5px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 500; background: #4A90E2; margin-top: 7px; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .amp-logo amp-img{width:190px} .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;} /* Inline styles */ img.acss139cf{background-color:#0866FF;}img.acss6ea51{background-color:#12AF0A;}img.acss43e08{background-color:#888990;}img.acss69ec8{background-color:#1A1A1A;}img.acssc8f88{background-color:#0166ff;}div.acss138d7{clear:both;}div.acssf5b84{--relposth-columns:3;--relposth-columns_m:2;--relposth-columns_t:2;}div.acss10ccc{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2021/05/螢幕截圖-2021-05-26-16.32.20-scaled-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss6bdea{color:#333333;font-family:Arial;font-size:12px;height:75px;}div.acss52540{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2019/05/Samurai-Shodown-01-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss39dbd{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2023/03/Android_Android14DPI_1024x512-150x150.png) no-repeat scroll 0% 0%;height:150px;max-width:150px;}div.acss9cb22{aspect-ratio:1/1;background:transparent url(https://pc3mag.com/wp-content/uploads/2017/08/shutterstock-logo-150x150.jpg) no-repeat scroll 0% 0%;height:150px;max-width:150px;} .ai-align-left * {margin: 0 auto 0 0; text-align: left;} .ai-align-right * {margin: 0 0 0 auto; text-align: right;} .ai-center * {margin: 0 auto; text-align: center; } .icon-widgets:before {content: "\e1bd";}.icon-search:before {content: "\e8b6";}.icon-shopping-cart:after {content: "\e8cc";}
即時新聞

黑客研發新工具 可自動找出解決方法修正錯誤的Code

一個名叫Pat Needham的個人黑客開發出一個新工具,名叫CodeCorrect,可以幫助開發人員修正錯誤的代碼。

該工具由Needham獨自開發,工具利用了StackOverflow的 API (一個網上干台,讓programmers分享和學習寫code的知識)去找出開發者的錯誤代碼。通過插入一段JavaScript到網頁代碼 ,代碼會請求StackOverflow的API搜索錯誤代碼的解決答案,而開發者並會得到來自StackOverflow最高評分的答案,如果答案可以自動轉換為指令的話,將會更改原先的代碼。

有了這個工具,相信可以減少開發人員的開發時間,特別是初級開發人員,幫助他們改正錯誤。

 

來源:Tech Crunch

andy

熱愛電影、生活 ,俗語說人生如戲,但香港人經歷的戲又可有多少呢?(已離職)