This file contains hidden or 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
| <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 163dpi)" href="/iOS-57px.png" /> | |
| <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 132dpi)" href="/iOS-72px.png" /> | |
| <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 326dpi)" href="/iOS-114px.png" /> |
This file contains hidden or 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
| $(function(){ | |
| $('#jqt').ajaxComplete(function(){ | |
| add_ga(); // add google analytics on each page load | |
| }); | |
| $(document).ready(function() { | |
| add_ga(); // add google analytics to the first page | |
| }); | |
| function add_ga() { |
This file contains hidden or 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 'socket' | |
| class ChatClient | |
| def initialize | |
| @server = TCPSocket.open( 'localhost', 36963 ) | |
| connectToServer | |
| end | |
| def connectToServer |
This file contains hidden or 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 'thread' | |
| require 'resolv' | |
| class Logger | |
| def initialize( infile = 'old-log.txt' , outfile = 'new-log.txt', max_threads = 3 ) | |
| @cache = {} | |
| @queue = Queue.new | |
| @list = [] | |
| @threads = [] |
This file contains hidden or 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
| def start( port = 24842 ) | |
| server = TCPServer.new( port ) | |
| log "[server log] Server started on localhost: #{port}" | |
| while @session = server.accept | |
| # 1) get the username | |
| username = @session.gets.chomp | |
| log "[server log] Received Client's Username: #{username}" | |
This file contains hidden or 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
| class TestTaskmaster < Test::Unit::TestCase | |
| def setup | |
| ### | |
| # Setup Class | |
| @tm = Taskmaster | |
| ### |
This file contains hidden or 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
| <script type="text/javascript"> | |
| var appVer = navigator.appVersion; | |
| var searchVersion = /\s(\d)_\d/; | |
| var searchDevice = /\s[(](\w+\s?\w*)[;]\s/; | |
| var isIPhone = false; | |
| var isIPad = false; | |
| if (searchVersion.exec(appVer) && searchDevice.exec(appVer)){ | |
| var deviceVersion = searchVersion.exec(appVer)[1]; | |
| if ("iPhone" == searchDevice.exec(appVer)[1]){ isIPhone = deviceVersion; } | |
| if ("iPhone Simulator" == searchDevice.exec(appVer)[1]){ isIPhone = deviceVersion; } |
This file contains hidden or 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 trkTimeTotal = 50000; // 50 seconds in milliseconds | |
| var trkTimeStart = 10000; // 10 seconds in milliseconds | |
| $(document).ready(function(){ | |
| $("#jquery_jplayer").jPlayer({ | |
| ready: function () { | |
| $(this).setFile("mp3/10SecondsIn.mp3").play(); | |
| }, | |
| volume: 100, | |
| oggSupport: false |
This file contains hidden or 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
| a#cartButton{ | |
| overflow: visible; | |
| } | |
| a#cartButton small.indicator{ | |
| font-size: 1em; | |
| position: absolute; | |
| display: block; | |
| overflow: hidden; | |
| top: -.5em; | |
| right: 100%; |