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
[5] pry(main)> ActiveRecord::Base.transaction do | |
[5] pry(main)* Staff.create!(email:"s2otsa59@gmail.com",password:"hoge",first_name:"hoge",last_name:"hoge",first_name_kana:"hoge",last_name_kana:"hoge",tel:"hoge") | |
[5] pry(main)* raise | |
[5] pry(main)* end | |
(0.3ms) BEGIN | |
Staff Create (0.5ms) INSERT INTO `staffs` (`email`, `password_digest`, `last_name`, `first_name`, `last_name_kana`, `first_name_kana`, `tel`) VALUES ('s2otsa59@gmail.com', '$2a$10$3A0bATSBfepHxZhsa52bBuc9Ps6dcq60sWyiPqEiqLuDc0EKwSWGa', 'hoge', 'hoge', 'hoge', 'hoge', 'hoge') | |
(1.9ms) ROLLBACK | |
RuntimeError: | |
from (pry):15:in `block in __pry__' | |
[6] pry(main)> ActiveRecord::Base.transaction do |
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> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta name="viewport" content="width=device-width"> | |
</head> | |
<body> | |
<button id="my_button" class="btn btn-primary">決定</button> | |
<script src="webperl.js"> |
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
class AAA{ | |
constructor(){ | |
console.log("aaa") | |
} | |
} | |
class XXX{ | |
} | |
class BBB extends XXX{ |
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
class AAA{ | |
constructor(){ | |
console.log("aaa") | |
} | |
} | |
class BBB{ | |
constructor(){ | |
console.log("bbb") | |
} |
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
class AAA{ | |
constructor(){ | |
console.log("aaa") | |
} | |
} | |
class BBB{ | |
constructor(){ | |
console.log("bbb") | |
} |
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
class A { | |
constructor(){ | |
console.log("1111111111111") | |
} | |
} | |
class Adash extends A { | |
constructor(){ | |
super() | |
console.log("2222222222222") |
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
DROP TABLE hoge_fuga_piyo; | |
DROP TABLE hoge_fuga; | |
DROP TABLE hoge; | |
-- ----------------------------------------------------- | |
-- Table `hoge` | |
-- ----------------------------------------------------- | |
CREATE TABLE IF NOT EXISTS `hoge` ( | |
id INT(10) UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL , | |
name varchar(255) NOT NULL | |
) |
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
let strftime = require("strftime") | |
function getDateList(day){ | |
let n = 3 | |
let deliveryCandidateDays = [] | |
while(deliveryCandidateDays.length < 8) { | |
let allDays = [] | |
let m = 1 | |
while(m <= n - 2){ |
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
#!/usr/bin/env perl | |
use 5.16.2; | |
use strict; | |
use warnings; | |
use utf8; | |
for my $f (@ARGV){ | |
my $s = ""; | |
{ | |
open my $fh , '<' , $f or die 'cant open file !'; |
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
#!/usr/bin/env perl | |
use 5.16.2; | |
use strict; | |
use warnings; | |
use utf8; | |
use String::Random qw/random_regex/; | |
use Test::More; | |
for(1..20){ | |
my $i = [map{0 + random_regex '\d{3}'}1..150]; |
NewerOlder