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:(l=>{let e=l.createElement("link");e.rel="stylesheet",e.href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/github.min.css",l.body.appendChild(e),(e=l.createElement("script")).src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js",e.onload=(()=>{(e=document.createElement("script")).src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/languages/javascript.min.js",e.onload=(()=>{l.querySelectorAll("pre").forEach(hljs.highlightBlock)}),l.body.appendChild(e)}),l.body.appendChild(e)})(document); |
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
(d => { | |
let e = d.createElement('link'); | |
e.rel = 'stylesheet'; | |
e.href = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/github.min.css'; | |
d.body.appendChild(e); | |
e = d.createElement('script'); | |
e.src = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js'; | |
e.onload = () => { | |
e = document.createElement('script'); |
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
<code_scheme name="Gutenberg" version="173"> | |
<HTMLCodeStyleSettings> | |
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> | |
</HTMLCodeStyleSettings> | |
<JSCodeStyleSettings> | |
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> | |
<option name="SPACES_WITHIN_IMPORTS" value="true" /> | |
<option name="SPACES_WITHIN_INTERPOLATION_EXPRESSIONS" value="true" /> | |
</JSCodeStyleSettings> | |
<PHPCodeStyleSettings> |
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 vm = new Vue({ | |
el: '#app', | |
data: { | |
message: 'Hello, World', | |
} | |
}); | |
// ここではvm.messageはリアクティブ | |
vm.message = 'Hello, Vue.js!'; |
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 php | |
<?php | |
/** | |
* gpg_verify.php | |
* | |
* This script requires PHP 5.5+. | |
* | |
* @author Ryo Utsunomiya | |
* @license MIT |
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
=?utf-8?Q?=E3=83=86=E3=82=B9=E3=83=88This_is_valid_subject_of_MIM?= | |
=?utf-8?Q?E_header?= |
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 'minitest/autorun' | |
def fizzbuzz(n) | |
return 'FizzBuzz' if n % 15 == 0 | |
return 'Buzz' if n % 5 == 0 | |
return 'Fizz' if n % 3 == 0 | |
n | |
end | |
class TestFizzBuzz < Minitest::Test |
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 php | |
<?php | |
// | |
// todoist_template_editor.php | |
// | |
// Usage: $ php todoist_template_editor.php 'do something' 10 | |
// => output todoist template 'do something.csv'. | |
if (!isset($argv[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
var voice = WScript.CreateObject("SAPI.SpVoice"); | |
voice.Speak("3"); | |
WScript.Sleep(1 * 1000); | |
voice.Speak("2"); | |
WScript.Sleep(1 * 1000); | |
voice.Speak("1"); | |
WScript.Sleep(1 * 1000); | |
voice.Speak("START"); | |
WScript.Sleep(1 * 1000); | |
voice.Speak("OWARI DESU"); |
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 ruby | |
def say(str) | |
system 'say ' + str | |
end | |
presentationTime = 300 | |
discussionTime = 60 | |
say '3' |
NewerOlder