This file contains 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
tap "hashicorp/tap" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
brew "git" | |
brew "hashicorp/tap/terraform" | |
cask "1password" | |
cask "docker" | |
cask "evernote" | |
cask "google-chrome" |
This file contains 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 std::{io, cmp::Ordering, convert::TryInto}; | |
use rand::Rng; | |
fn main() { | |
println!("Guess the number!"); | |
let secret_numbers:[u32; 5] = [ | |
rand::thread_rng().gen_range(0..10), | |
rand::thread_rng().gen_range(0..10), | |
rand::thread_rng().gen_range(0..10), | |
rand::thread_rng().gen_range(0..10), |
This file contains 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 std = @import("std"); | |
const time = std.time; | |
const prng = std.rand.DefaultPrng; | |
pub fn main() anyerror!void { | |
const stdin = std.io.getStdIn().reader(); | |
const stdout = std.io.getStdOut().writer(); | |
try stdout.print("Welcome, {s}!\n", .{"5 of Number Game!"}); |
This file contains 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 "json" | |
require "selenium-webdriver" | |
gem "test-unit" | |
require "test/unit" | |
class Case1Webdriver < Test::Unit::TestCase | |
def setup | |
@driver = Selenium::WebDriver.for :firefox | |
@base_url = "https://www.google.co.jp/" |
This file contains 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 "json" | |
require "selenium-webdriver" | |
gem "test-unit" | |
require "test/unit" | |
class Case1WebdriverMoto < Test::Unit::TestCase | |
def setup | |
@driver = Selenium::WebDriver.for :firefox | |
@base_url = "https://www.google.co.jp/" |
This file contains 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 strict'; | |
module.exports = function(grunt) { | |
grunt.registerMultiTask('cclogdelete', 'delete cclog() with ruby script.', function() { | |
// Merge task-specific and/or target-specific options with these defaults. | |
var options = this.options({ | |
}); |
This file contains 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 spawn = require('child_process').spawn; | |
var cmd = spawn('ruby', ['node_modules/grunt-cclogdelete/cclogdelete.rb', filepath], { cwd:"." }); | |
var buff = ""; | |
// 標準出力を受け取った際の処理(出力される毎にイベント発火) | |
cmd.stdout.on('data', function(data) { | |
// grunt.log.writeln('stdout:' + data); | |
buff += String(data); | |
}); |
This file contains 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
<html> | |
テンプレートの予定 | |
</html> |
This file contains 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
// View of Food | |
var FoodView = Backbone.View.extend({ | |
tagName:'li', | |
className:'food', | |
initialize: function() { | |
this.render(); | |
this.model.on('change', this.render, this); // 追加 | |
this.model.on('destroy', this.remove, this); // 追加 | |
}, | |
// eventsを追加 |
This file contains 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
// View to add new food interface 追加 | |
var NewView = Backbone.View.extend({ | |
el: $('#newfood'), | |
initialize: function() { | |
this.render(); | |
}, | |
events:{ | |
'click button#newfood-button': 'addFood' | |
}, | |
render: function() { |
NewerOlder