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
| from openai import OpenAI | |
| LLM_PROMPT = """ | |
| Your Prompt to get the score. | |
| """ | |
| LLM_TOOLS = [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_score", |
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
| mas "CotEditor", id: 1024640650 |
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
| { | |
| "name": "Fishing Cat Server", | |
| "description": "Fishing Cat Server", | |
| "repository": "https://github.com/fishing-cat/fishing-cat-server", | |
| "website": "https://github.com/fishing-cat/fishing-cat-server", | |
| "keywords": ["phishing", "security", "ruby", "rails", "cat", "rails"], | |
| "scripts": { | |
| "postdeploy": "bundle exec rails db:prepare" | |
| }, | |
| "addons": ["heroku-postgresql"], |
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
| // MaxResults: | |
| // TaskList: 20 | |
| // Task: 100 per TaskList | |
| function getTaskCount() { | |
| let count = 0; | |
| Tasks.Tasklists.list({maxResults: 20}).items.forEach(function(taskList) { | |
| const tasks = Tasks.Tasks.list(taskList.id, { | |
| maxResults: 100, | |
| showCompleted: false, |
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
| #! /usr/bin/env python3 | |
| # Usage: | |
| # $ python3 this.py > output.csv | |
| # $ nkf --overwrite --oc=UTF-8-BOM output.csv | |
| import glob | |
| import hashlib | |
| import os | |
| import sys |
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 sshd server system-wide configuration file. See | |
| # sshd_config(5) for more information. | |
| # This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games | |
| # The strategy used for options in the default sshd_config shipped with | |
| # OpenSSH is to specify options with their default value where | |
| # possible, but leave them commented. Uncommented options override the | |
| # default value. |
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
| // Googleシートからは `=TOROW(BIB(A1))` のように使う。 | |
| function BIB(isbn) { | |
| return _getBibEntriesAsListByIsbn(isbn); | |
| } | |
| function _getBibEntriesAsListByIsbn(isbn) { | |
| const entries = _getBibEntriesAsMapByIsbn(isbn); | |
| return [ | |
| entries.isbn, |
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
| JIMPrefPunctuationTypeKey=$(defaults read com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey) | |
| if [ $JIMPrefPunctuationTypeKey -eq 0 ]; then | |
| defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey 3 | |
| elif [ $JIMPrefPunctuationTypeKey -eq 3 ]; then | |
| defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey 0 | |
| fi | |
| killall -HUP "JapaneseIM-RomajiTyping" |
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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| // ... | |
| ref.listen( | |
| snackBarProvider, | |
| (previous, next) { | |
| if (mounted && next != null) { | |
| ScaffoldMessenger.of(context).showSnackBar(next); | |
| } | |
| }, |
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
| const table = document.getElementsByTagName("table")[2]; | |
| for (const row of table.rows) { | |
| try { | |
| const last_submitted_at = new Date(row.cells[3].innerText.split("\n")[0]); | |
| const last_scored_at = new Date(row.cells[6].innerText.split("\n")[0]); | |
| if(last_submitted_at > last_scored_at) { | |
| row.style.backgroundColor = "red"; | |
| } else { | |
| /* do nothing */ | |
| } |
NewerOlder