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
| .DocumentContainer.has-tagBackground .node-tag[title~="#wip"] { | |
| background: rgba(255, 0, 0, 0.5); | |
| color: #7a7a7a; | |
| } | |
| .DocumentContainer.has-tagBackground .node-tag[title~="#waiting"] { | |
| background: rgba(255, 255, 0, 0.5); | |
| color: #7a7a7a; | |
| } |
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 pytz | |
| from airflow import models | |
| tz = pytz.timezone('Asia/Tokyo') | |
| def in_jst(execution_date): | |
| """Returns the execution date in JST.""" | |
| return tz.fromutc(execution_date) | |
| def ds_in_jst(execution_date): |
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
| var pattern = "//.*"; | |
| function changeColor(text, pattern) { | |
| var foundText = text.findText(pattern); | |
| while (foundText != null) { | |
| foundText.getElement().asText().setForegroundColor( | |
| foundText.getStartOffset(), | |
| foundText.getEndOffsetInclusive(), | |
| "#888888"); | |
| foundText = text.findText(pattern, foundText); |
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
| javascript:(function()%7Bconst%20el%20%3D%20document.createElement('textarea')%3Bconst%20str%20%3D%20document.title%20%2B%20'%20-%20'%20%2B%20document.URL%3Bel.value%20%3D%20str%3Bel.setAttribute('readonly'%2C%20'')%3Bel.style.position%20%3D%20'absolute'%3Bel.style.left%20%3D%20'-9999px'%3Bdocument.body.appendChild(el)%3Bel.select()%3Bconst%20result%20%3D%20document.execCommand('copy')%3Bdocument.body.removeChild(el)%3Bif%20(result)%20%7Balert('copied%20%22'%20%2B%20str%20%2B%20'%22')%3B%7D%20else%20%7Balert('copy%20failed')%3B%7D%7D)() |
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 java.util.Collections; | |
| import java.util.Comparator; | |
| import java.util.List; | |
| public class Permutations { | |
| /** | |
| * Rearrange the list into the next lexicographically greater permutation if exists. | |
| * | |
| * @return true if such a permutation exists, otherwise 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
| /** | |
| * | Start | End | | Calendar | Title | Done | | |
| * |------------|------------|---|-----------|-------|------| | |
| * | 3/26 13:00 | 3/26 14:00 | | | Lunch | | | |
| * |------------|------------|---|-----------|-------|------| | |
| * | 3/26 | | v | Birthdays | Alice | | | |
| */ | |
| var INDEX = { | |
| START: 0, | |
| END: 1, |
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
| #!/bin/bash | |
| # Variables: | |
| # JALAN_API_KEY - API key of Jalan web service | |
| # Visit https://www.jalan.net/jw/jwp0400/jww0401.do to get new key. | |
| # TO_ADDRES - The address to send mails. | |
| URL="http://jws.jalan.net/APIAdvance/StockSearch/V1/?key=${JALAN_API_KEY}&stay_date=20151121&stay_count=1&room_count=1&adult_num=2&s_area=192002" | |
| set -eux |