- checkout
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
puts "否定論理積 NAND" | |
NAND = ->(x, y) { (x & y) == 0 ? 1 : 0 } | |
puts NAND[0, 0] | |
puts NAND[0, 1] | |
puts NAND[1, 0] | |
puts NAND[1, 1] | |
puts "否定 NOT" | |
NOT = ->(x) { NAND[x, x] } | |
puts NOT[0] |
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
class RSFlipFlop | |
def initialize | |
@q = 0 | |
@q_not = 1 | |
end | |
def set | |
@q = 1 | |
@q_not = 0 | |
end |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Vue.js SPAのサンプルアプリケーション</title> | |
<style> | |
[v-cloak] { | |
display: none | |
} | |
</style> | |
</head> |
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
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | |
<div id="login-example"> | |
<user-login></user-login> | |
</div> | |
<script type="text/x-template" id="login-template"> | |
<div id="login-template"> | |
<div> | |
<input type="text" placeholder="ログインID" v-model="userid"> |
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
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | |
<div id="fruits-counter"> | |
<div v-for="fruit in fruits"> | |
{{ fruit.name }}: <counter-button v-on:increment="incrementCartStatus()"></counter-button> | |
</div> | |
<p>合計: {{ total }}</p> | |
</div> | |
<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
var items = [ | |
{ | |
name: '鉛筆', | |
price: 300, | |
quantity: 0 | |
}, | |
{ | |
name: 'ノート', | |
price: 400, | |
quantity: 0 |
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
<source> | |
@id input_forward | |
@type forward | |
port 24224 | |
</source> | |
<match club.access> | |
@type copy | |
<store> | |
@type s3 |
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
<system> | |
process_name fluentd | |
</system> | |
<source> | |
@id input_forward | |
@type forward | |
port 24224 | |
</source> |
NewerOlder