heroku login
Enter your heroku username and password
<script type='text/javascript'><!--//<![CDATA[ | |
var m3_u = (location.protocol=='https:'?'https://192.168.12.62/openx/www/delivery/ajs.php':'http://192.168.12.62/openx/www/delivery/ajs.php'); | |
var m3_r = Math.floor(Math.random()*99999999999); | |
if (!document.MAX_used) document.MAX_used = ','; | |
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); | |
document.write ("?zoneid=1"); | |
document.write ('&cb=' + m3_r); | |
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); | |
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); | |
document.write ("&loc=" + escape(window.location)); |
def makemerich(array) | |
output = Array.new | |
diff = 0 | |
array.each_with_index do |item1,index1| | |
array.each_with_index do |item2,index2| | |
n = 0 | |
n = item2-item1 if index2 > index1 | |
output = index1,index2 if n > diff | |
end | |
end |
describe 'Expectation Matchers' do | |
describe 'equivalence matchers' do | |
it 'will match loose equality with #eq' do | |
a = "2 cats" | |
b = "2 cats" | |
expect(a).to eq(b) | |
expect(a).to be == b # synonym for #eq |
heroku login
Enter your heroku username and password
Ruby Synchronous code:
def short
puts 'short - ' + Time.now.to_s
end
def long
sleep 2
puts 'long - ' + Time.now.to_s
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ | |
var casper = require("casper").create(); |