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 str1 = new String(); | |
var str2 = new String('123aa') | |
describe('example',function() { | |
it('use spy',function(){ | |
spyOn(str1,'indexOf').andCallFake(function(s){ | |
return 50; | |
}); | |
expect(str1.indexOf('aa')).toEqual(50); | |
}); |
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
FROM centos:latest | |
RUN yum update -y | |
RUN yum install -y passwd openssh openssh-server openssh-clients sudo | |
## Create user | |
RUN useradd vagrant | |
RUN passwd -f -u vagrant | |
## Set up SSH | |
RUN mkdir -p /home/vagrant/.ssh; chown vagrant /home/vagrant/.ssh; chmod 700 /home/vagrant/.ssh | |
ADD authorized_keys /home/vagrant/.ssh/authorized_keys |
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
$ ssh-add -l | |
2048 f7:07:18:66:97:f0:8f:7b:40:6f:0b:97:98:de:5e:18 /home/newgyu/.ssh/y.pem (RSA) |
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 'aws-sdk' | |
require 'capistrano/ec2_tagged' |
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 'aws-sdk' |
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
: | |
SSHKit.config.command_map[:composer] = "#{fetch(:deploy_to)}/console/composer.phar" | |
namespace :deploy do | |
: | |
desc 'pubilshされたあとにゴニョゴニョ' | |
task :published do | |
on roles(:console) 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
var issues = {}; | |
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse){ | |
chrome.pageAction.show(sender.tab.id); | |
issues[sender.tab.id] = request.issues; | |
sendResponse({tabid:sender.tab.id}); | |
}); |
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
> npm install -g phantomjs@1.9.2-1 | |
> npm install -g karma |
NewerOlder