Install highlight with homebrew.
brew install highlight
| #!/bin/node | |
| // via http://starwing.net/suddenly_death.html | |
| function getByteLength (string) { | |
| var r = 0; | |
| for (var i = 0; i < string.length; i++) { | |
| var c = string.charCodeAt(i); | |
| // Shift_JIS: 0x0 ~ 0x80, 0xa0 , 0xa1 ~ 0xdf , 0xfd ~ 0xff | |
| // Unicode : 0x0 ~ 0x80, 0xf8f0, 0xff61 ~ 0xff9f, 0xf8f1 ~ 0xf8f3 |
| const rx = { | |
| id: /^#([\w\-]+)$/, | |
| className: /^\.([\w\-]+)$/, | |
| tagName: /^[\w\-]+$/, | |
| name: /^\[name=["']?([\w\-]+)["']?\]$/ | |
| }; | |
| function $(selector, context) { | |
| let result; | |
| let m; |
| (function(global) { | |
| // Compatibility | |
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia; | |
| var peerClient; | |
| var currentPeerConnection; | |
| var localMediaStream; | |
| $(function() { |
By Saad Mousliki
御存知の通り、JavaScriptは数あるプログラミング言語のうちのひとつであり、モバイルのハイブリッドアプリ(PhoneGapやAppceleratorといった)や、サーバーサイド(NodeJSやWakanda)等の様々な所で実装されているWebの言語です。 また、Webブラウザにalertを出すところから、ロボットを動かす(nodebotやnodruinoを使って)ところまで様々なシーンで使われる言語となりました。 JavaScriptをマスターし、パフォーマンスの良いコードを生み出す開発者は市場で最も求められています。
| #!/bin/sh | |
| # to use, save this file as .git/hooks/pre-commit in your git repo | |
| # make sure to add execute permissions using: chmod +x .git/hooks/pre-commit | |
| command -v imgo >/dev/null 2>&1 || { | |
| echo "\033[1mPlease install imgo to reduce images size before commit\033[0m" | |
| echo "Install imgo with the following:" | |
| echo "\t \033[1mnpm install -g imgo\033[0m" | |
| exit 1; | |
| } |
コーディングガイド by @mdoから多くを抜粋・改変しています。
| {const style = document.createElement('style');style.innerHTML = `* { background-color: rgba(255,0,0,.2); }* * { background-color: rgba(0,255,0,.2); }* * * { background-color: rgba(0,0,255,.2); }* * * * { background-color: rgba(255,0,255,.2); }* * * * * { background-color: rgba(0,255,255,.2); }* * * * * * { background-color: rgba(255,255,0,.2); }* * * * * * * { background-color: rgba(255,0,0,.2); }* * * * * * * * { background-color: rgba(0,255,0,.2); }* * * * * * * * * { background-color: rgba(0,0,255,.2); }`;document.head.appendChild(style);} |
| function hideUntilYesterday() { | |
| const spreadSheetId = 'spreadSheetId'; | |
| const spreadSheet = SpreadsheetApp.openById(spreadSheetId); | |
| const yesterdayTime = Date.now() - (24 * 60 * 60 * 1000); | |
| for (const sheet of spreadSheet.getSheets()) { | |
| const lastColumn = sheet.getLastColumn(); | |
| let column = 2; | |
| while (column <= lastColumn) { |
固定資産税評価額を 3,000 万円とすると