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 'digest/md5' | |
| hash = "4b364677946ccf79f841114e73ccaf4f" | |
| salt = "hoge$" | |
| 0.upto(999999) { |num| | |
| pass = "%06d"%num | |
| digest = Digest::MD5.new.update(salt + pass).to_s | |
| if digest == hash | |
| puts "Solved: #{pass}" | |
| 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
| Colour0="131,148,150" | |
| Colour1="147,161,161" | |
| Colour2="0,43,54" | |
| Colour3="7,54,66" | |
| Colour4="0,43,54" | |
| Colour5="238,232,213" | |
| Colour6="7,54,66" | |
| Colour7="0,43,56" | |
| Colour8="220,50,47" | |
| Colour9="203,75,22" |
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
| module.exports = (robot) -> | |
| robot.hear /tired/, (msg) -> | |
| robot.brain.data.count = 0 unless robot.brain.data.count | |
| robot.brain.data.count += 1 | |
| robot.brain.save | |
| if robot.brain.data.count < 3 then msg.send "Let's take a short break." else msg.send "You must take a break." | |
| robot.hear /fine/, (msg) -> | |
| robot.brain.data.count = 0 | |
| robot.brain.save |
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
| cron = require('cron').CronJob | |
| module.exports = (robot) -> | |
| robot.enter -> | |
| new cron | |
| cronTime: "0 0 9 * * *" | |
| start: true | |
| timeZone: "Asia/Tokyo" | |
| onTick: -> | |
| robot.send {room: "#hoge"}, "朝会の時間です。" |
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
| # Description: | |
| # hubot answer the FizzBuzz Question | |
| # | |
| # Commands: | |
| # hubot fizzbuzz N - Reply result of FizzBuzz | |
| module.exports = (robot) -> | |
| robot.respond /fizzbuzz( (\d+))?/i, (msg) -> | |
| count = msg.match[2] || 100 | |
| msg.send ['Fizz' unless i%3] + ['Buzz' unless i%5] or i for i in [1..count] |
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> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
| <link type="text/css" rel="stylesheet" href="style.css"/> | |
| <div id="chartContainer"> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://dimplejs.org/dist/dimple.v1.1.1.min.js"></script> | |
| <script type="text/javascript"> | |
| var svg = dimple.newSvg("#chartContainer", 1890, 900); |
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
| species | year | ha | kg | t | |
|---|---|---|---|---|---|
| Sweet potato | 1980 | 64800 | 2030 | 1317000 | |
| Sweet potato | 1981 | 65000 | 2240 | 1458000 | |
| Sweet potato | 1982 | 65700 | 2110 | 1384000 | |
| Sweet potato | 1983 | 64800 | 2130 | 1379000 | |
| Sweet potato | 1984 | 64600 | 2170 | 1400000 | |
| Sweet potato | 1985 | 66000 | 2310 | 1527000 | |
| Sweet potato | 1986 | 65000 | 2320 | 1507000 | |
| Sweet potato | 1987 | 64000 | 2220 | 1423000 | |
| Sweet potato | 1988 | 62900 | 2110 | 1326000 |
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
| <?xml version="1.0"?> | |
| <settings> | |
| <console> | |
| <colors> | |
| <color id="0" r="240" g="215" b="192"/> | |
| <color id="1" r="38" g="139" b="210"/> | |
| <color id="2" r="133" g="153" b="0"/> | |
| <color id="3" r="42" g="161" b="152"/> | |
| <color id="4" r="220" g="50" b="47"/> | |
| <color id="5" r="211" g="54" b="130"/> |
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> | |
| <meta charset="utf-8"> | |
| <title>Data Binding</title> | |
| </head> | |
| <body> | |
| <div id="fruits"> | |
| <p>リンゴ</p> | |
| <p>オレンジ</p> |
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> | |
| <meta charset="utf-8"> | |
| <title>Selection</title> | |
| </head> | |
| <body> | |
| <div id="text"> | |
| <p>Hello! D3.js</p> | |
| </div> |