This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* サイゼリヤで1000円あれば最大何kcal取れるのか | |
* | |
* 【動作】 | |
* 円あたりのカロリーが高い順に,1000円になるまでメニューを追加 | |
* | |
* 【実行】 | |
* こちらのデータを使用させてもらいます: https://github.com/hodaka0714/saize_calory_maxmization | |
* 実行環境: csvq version 1.11.4 | |
* 実行手順: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Reports download count from csvq release page(https://github.com/mithrandie/csvq/releases). | |
* | |
* Usage: | |
* - Get information from GitHub API | |
* $ csvq -s csvq_download_report.sql | |
* - Load information from downloaded local file | |
* $ curl https://api.github.com/repos/mithrandie/csvq/releases -o ./releases/releases_20190302.json | |
* $ env GET_DATE=20190302 csvq -s csvq_download_report.sql | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Replace current table with the result of the query. | |
(defun org-csvq-update () | |
"run csvq update or delete query" | |
(interactive) | |
(unless (org-at-table-p) (user-error "No table at point")) | |
(org-table-align) | |
(let ((query (read-string "query: "))) | |
(let ((table (org-table-to-lisp (buffer-substring-no-properties (org-table-begin) (org-table-end)))) | |
(query (format "%s SELECT * FROM stdin;" query)) | |
(view)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;This is the backup file of the user dictionary. | |
;A tab character is set before a word and after its reading. | |
;The supported encoding is UTF-8 and line break is CR+LF. | |
;Example1: | |
;そにー ソニー株式会社 | |
;Example2: | |
;sony Sony Corporation | |
; | |
;You can use 50 characters per word and its reading. | |
;You can save up to 500 words in the user dictionary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e $(echo $(printf 'f%.0s' {1..12}; printf "$(echo $MAC_ADDRESS | sed 's/://g')%.0s" {1..16}) | sed -e 's/../\\x&/g') | /usr/local/bin/ncat -u $BROADCAST_ADDRESS 9 |