- 犬(Dog ライトブラウン) x20
- 羊(Sheep 白) x35
- ロバ(Donky グレイ) x30
- イノシシ(Wild boar 黒) x30
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
| #include <stdio.h> | |
| int main() { | |
| int answer = 20; | |
| char input[10]; | |
| while(1) { | |
| printf("input: "); | |
| scanf("%s", input); | |
| if ( answer == atoi(input)) { |
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 Jasmine | |
| class UrlMapper | |
| def initialize(config) | |
| @config = config | |
| end | |
| def map_url_paths(paths) | |
| paths.map{|path| path} | |
| end | |
| 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
| package main | |
| import ( | |
| "code.google.com/p/go-tour/pic" | |
| "image" | |
| "image/color" | |
| ) | |
| type Image struct{} |
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
| def self.register_url(name, url) | |
| uri = URI.parse(url) | |
| define_method("#{name}_url") do |options = {}| | |
| anchor = options.delete(:anchor) if options | |
| ActionDispatch::Http::URL.full_url_for(host: uri.host, scheme: uri.scheme, path: uri.path, anchor: anchor, params: options) | |
| end | |
| end | |
| register_url :google, 'https://google.com/' |
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
| function checkBrowser(){ | |
| var a=''; | |
| var b={}; | |
| b.name=window.navigator.userAgent.toLowerCase(); | |
| b.platform=window.navigator.platform.toLowerCase(); | |
| b.isMac=(b.platform.indexOf('mac')>=0); | |
| b.isWin=(b.platform.indexOf('win')>=0); | |
| b.isCrOS=(b.platform.indexOf('linux')>=0 && b.name.indexOf('cros')>=0); | |
| b.isIE=(b.name.indexOf('msie')>=0||b.name.indexOf('trident')>=0); | |
| b.isSafari=b.name.indexOf('safari')>=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
| cat /etc/passwd | cut -f 1 -d : | grep -v $USER > ~/death_note.txt |
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 PhpValue | |
| def self.indent(depth) | |
| ' ' * depth * 4 | |
| end | |
| def self.output(value, depth = 0) | |
| case value | |
| when true, false | |
| value.to_s | |
| when nil |