Server: Nginx with Phusion Passenger
Ruby Version: 2.1.3
User System: deploy
| #=========================================== | |
| # 1. Benchmark | |
| # | |
| require 'benchmark' | |
| Benchmark.bmbm do |x| | |
| x.report ('<<') do | |
| 1_000_000.times do | |
| one = 'one' | |
| two = 'two' |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| (function() { | |
| var users = [ | |
| { | |
| id: '100001671834399', | |
| name: 'Krishna Bashyal', | |
| nickname: 'Krrish', | |
| sound: false | |
| }, |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <div class="viewport"></div> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r58/three.min.js"></script> | |
| <script src="//threejs.org/examples/js/controls/OrbitControls.js"></script> |
| <object width='425' height='344'> | |
| <param name='movie' value='http://www.youtube.com/v/a0BOPX8yy4g&fs=1' /> | |
| <param name='allowFullScreen' value='true' /> | |
| <param name='allowscriptaccess' value='always' /> | |
| <embed id='ytplayer' src='http://www.youtube.com/v/a0BOPX8yy4g&fs=1' type='application/x-shockwave-flash' width='425' height='344' allowscriptaccess='always' allowfullscreen='true' /> | |
| </object> | |
| <div class="STplayer STplayerEmbedded STplayerBarebones" id="STtranscriptEmbed_1_a0BOPX8yy4g" data-version="1.0"> | |
| <div class="STbar"> | |
| <div class="STlogo"><a href="http://speakertext.com/captionbox?ref=cb" target="_blank"></a></div> |