(Skyfall by Adele parody)
This is the end
Hold your breath for two minutes
Feel the earth move and then
Hear his “praise” burst again
| var NewsWidget = { | |
| init: function() { | |
| // Do some init stuffs | |
| } | |
| otherMethods: function() { | |
| // Expend the ability of the widget | |
| } | |
| }; |
| <%= f.text_field :title %> | |
| <%= f.text_field :body %> |
| China.claim do |one_china| | |
| one_china = { | |
| :name => "People's Republic of China", | |
| :territory => ["Mainland China", "Taiwan"] | |
| } | |
| Taiwan.claim do |one_china| | |
| one_china = { | |
| :name => "Republic of China", | |
| :territory => ["Mainland China", "Taiwan"] |
| jQuery(function($) { | |
| var continueFlag = false; | |
| var logScroll = function() { | |
| console.log(window.scrollY, continueFlag); | |
| if (continueFlag) { | |
| setTimeout(function() { logScroll() }, 1000/60); | |
| } | |
| } |
| function doHeavyWork() { | |
| var deferred = $.Deferred(), | |
| meaningOfLife = new Array(); | |
| setTimeout(function() { | |
| for (var i = 0; i < 65536; i++) { | |
| meaningOfLife[i] = new Array(); | |
| for (var j = 0; j < 65536; j++) { | |
| meaningOfLife[i][j] = new Array(); | |
| for (var k = 0; k < 65536; k++) { |
| class CinematicSubtitleConverter | |
| constructor: (@file_path) -> | |
| @subtitleFileNames = [] | |
| @_initSubtitleList() | |
| convert: (index) -> | |
| subtitlePath = "#{@file_path}/#{@subtitleFileNames[index]}" | |
| subtitleFile = new CinematicSubtitle(subtitlePath) | |
| console.log subtitleFile |
(Skyfall by Adele parody)
This is the end
Hold your breath for two minutes
Feel the earth move and then
Hear his “praise” burst again
| (function() { | |
| var loc = location.href.replace(/\/#!.*/,$('a.tweet-timestamp').attr('href').match(/\/#!(.*)/)[1]); | |
| var text = $('div.tweet-text').text(); | |
| var id = $('a.tweet-timestamp').attr('href').match(/#!\/(\w+)/)[1] | |
| var final = loc + ' (轉推' + id + '):「' + text + '」'; | |
| window.prompt('人工RT轉噗浪', final); | |
| })(); |
| var msg1 = "您知道您使用的 Internet Explorer 瀏覽器已經該退休了嗎?"; | |
| var msg2 = "太舊的瀏覽器比較不安全,而且還可能會使瀏覽網路時遇到許多障礙。建議您升級到較新的版本,或是改用其他的瀏覽器,以獲得更好的使用體驗。下面有一些熱門又先進的瀏覽器推薦給您。"; | |
| var msg3 = "只要點選圖示,就可以連到各瀏覽器的下載頁面。"; | |
| var br1 = "Internet Explorer 8+"; | |
| var br2 = "Firefox 3.5+"; | |
| var br3 = "Safari 5+"; | |
| var br4 = "Opera 11+"; | |
| var br5 = "Chrome 5+"; | |
| var url1 = "http://www.microsoft.com/ie"; | |
| var url2 = "http://www.firefox.com/"; |