$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
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 'rubygems' | |
| require 'net/ssh' | |
| # Run this on the machine (node) which needs to tunnel out to forward the UI to the remote system (console) | |
| Net::SSH.start("remote_host", "remote_user") do |ssh| | |
| # since we are running sinatra locally we will forward 43210 on the remote_host to our localhost 4567 | |
| # This is effectively the same as: | |
| # ssh -R 4567:localhost:43210 remote_user@remote_host | |
| ssh.forward.remote(4567, "localhost", 43210) | |
| ssh.loop { true } |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "time" | |
| ) | |
| var urls = []string{ | |
| "https://splice.com/", |
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
| /*! | |
| * backbone.collectioncache.js v0.0.2 | |
| * Copyright 2012, Tim Branyen (@tbranyen) | |
| * backbone.collectioncache.js may be freely distributed under the MIT license. | |
| */ | |
| (function(window) { | |
| "use strict"; | |
| // Dependencies |
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() { | |
| function DateDiff(date1, date2) { | |
| this.days = null; | |
| this.hours = null; | |
| this.minutes = null; | |
| this.seconds = null; | |
| this.date1 = date1; | |
| this.date2 = date2; |
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
| // http://w3c-test.org/webperf/specs/NavigationTiming/ | |
| (function( window ) { | |
| // Skip unsupported browsers | |
| if ( ! window.performance || ! window.performance.timing ) { | |
| return; | |
| } | |
| // Output | |
| function perf(){ |
NewerOlder