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 assert = require('assert'); | |
const arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; | |
const answer = [[3, 6, 9], [2, 5, 8], [1, 4, 7]]; | |
const wrongAnswer = [[4, 6, 9], [2, 5, 8], [1, 4, 7]]; | |
const rotate = b => { | |
const transpose = a => a[0].map((_, c) => a.map(r => r[c])); | |
return transpose(b).reverse(); | |
}; |
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 { environment } = require('@rails/webpacker') | |
const babelLoader = environment.loaders.get('babel') | |
environment.loaders.insert('svg', { | |
test: /\.svg$/, | |
use: babelLoader.use.concat([ | |
{ | |
loader: 'react-svg-loader', | |
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
> User.find(1).send_confirmation_instructions.body | |
(0.2ms) BEGIN | |
(0.2ms) COMMIT | |
Rendering devise/mailer/confirmation_instructions.html.slim | |
Rendered devise/mailer/confirmation_instructions.html.slim (0.6ms) | |
Devise::Mailer#confirmation_instructions: processed outbound mail in 115.8ms | |
Sent mail to [email protected] (4.1ms) | |
Date: Thu, 02 Feb 2017 17:36:46 +0900 | |
From: [email protected] | |
Reply-To: [email protected] |
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
head :not_found |
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
snippet pipe | |
abbr pipeline | |
options head | |
pipeline :${1:browser} do | |
${2} | |
end | |
snippet pipe | |
abbr pipe_through | |
options head |
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 fs = require('fs'); | |
var exec = require('child_process').exec; | |
fs.readdir('.', (err, files) => { | |
if (err) throw err; | |
var fileList = []; | |
files.filter((file) => { | |
return fs.statSync(file).isFile() && /.*\.m4a$/.test(file) | |
}).forEach((file) => { | |
file = __dirname + "/" + file |