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
| use_bpm 78 * 2 | |
| use_synth :pulse | |
| RELEASE = 0.5 | |
| def melody(last = false) | |
| play 96 | |
| sleep 1.0 | |
| play 93 | |
| sleep 1.0 | |
| play 91 |
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: | |
| [".color-fg-closed", ".color-fg-done"].forEach( | |
| sel => { | |
| document.querySelectorAll(sel).forEach( | |
| it => { | |
| div = it.closest(".flex-row"); | |
| console.log(div); | |
| c = div.querySelector("input"); | |
| c.click(); | |
| } |
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
| // レビュー待ちのpull requestをお知らせ。 | |
| // トリガーから定期実行するのを想定している。 | |
| var CHANNEL = "your_review_channel"; | |
| var REPOSITORIES = [ | |
| "your_github/your_repository1", | |
| "your_github/your_repository2" | |
| ]; | |
| function noteReviews() { | |
| if (shouldSleep()) return; |
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
| // GitHubからWebHookを受け、releaseタグを作成する。 | |
| // GitHub webhookで以下を受取るように設定すること | |
| // - Pull request reviews | |
| // - Pull request review comments | |
| // | |
| // dependencies: | |
| // SlackApp https://script.google.com/macros/library/versions/d/1on93YOYfSmV92R5q59NpKmsyWIQD8qnoLYk-gkQBI92C58SPyA2x1-bq | |
| var CHANNEL = "your_review_channel"; |
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() { | |
| names = {}; | |
| $(".display_name").each(function(index, u) { | |
| let n = $(u).text().trim(); | |
| names[n] = n; | |
| }); | |
| names = Object.keys(names).sort(function() { return Math.random() - .5; }); | |
| s = names.join("さん, ") + "さん"; | |
| window.prompt("", s); | |
| })(); |
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
| # How to use: | |
| # find ./src -type f -name "*ts" | ruby camelize.rb | |
| def capitalize(str) | |
| str.split("_").map(&:capitalize).join | |
| end | |
| while (file = gets) do | |
| output = "" | |
| file.chomp! | |
| p "start: #{file}" |
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 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
| require 'esa' | |
| require 'pp' | |
| require 'find' | |
| class EsaExportedMarkdown | |
| attr_reader :title, :category, :tags, :created_at, :updated_at, :published, :number, :body | |
| INDEX_DATA_START = 1 | |
| INDEX_DATA_END = 7 | |
| INDEX_BODY_START = 10 | |
| def initialize(file_path) |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class MinoDetecter : MonoBehaviour { | |
| void Start () { | |
| } | |
| void Update () { | |
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
| require "net/http" | |
| URL = "https://example.com/" | |
| [*"a".."z", *"0".."9", "_"].each do |ch| | |
| uri = URI.parse("#{URL}@#{ch}") | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.use_ssl = true | |
| response = http.head(uri.request_uri) | |
| puts "@#{ch} #{response.code}" | |
| sleep 3 # 優しさ | |
| end |
NewerOlder