Skip to content

Instantly share code, notes, and snippets.

@yosiat
yosiat / overloading.js
Created August 4, 2013 19:01
overloading
function one_arity(first_arg) {
console.log("one_arity: " + first_arg);
}
function two_arity(first_arg, second_arg) {
console.log("two_arity: " + first_arg, second_arg);
}
function caller() {
➜ test git:(master) git svn clone http://protobuf.googlecode.com/svn/ test --stdlayout -Ttags/
.. GIT SVN RESULTS ..
➜ test git:(master) git tag -l
➜ test git:(master) git branch -a
* master
remotes/maven-plugin
remotes/maven-plugin@94
remotes/tags/2.0.2
remotes/tags/2.0.2@60
remotes/tags/2.0.3
@yosiat
yosiat / seedfu-errors
Created April 27, 2013 11:12
seedfu gitlab
[2013-04-27T11:04:50+00:00] INFO: Processing execute[gitlab-development-setup] action run (gitlab::vagrant line 190)
[2013-04-27T11:05:28+00:00] INFO: execute[gitlab-development-setup] ran successfully
[2013-04-27T11:05:28+00:00] INFO: Processing execute[gitlab-development-seed] action run (gitlab::vagrant line 198)
================================================================================
Error executing action `run` on resource 'execute[gitlab-development-seed]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
class ImportWorker
include Sidekiq::Worker
include Sidekiq::Status::Worker
def get_command
# This command just returns the "git-tf clone .." command, getting from config file the paramters
# and concating all
command
end
// When the document is ready to be manipulated..
$(document).ready(function(){
// connect to sokcet io
var socket = io.connect('http://localhost:1337');
var $box = $("#box");
$box.draggable({
drag: function(){
socket.emit("box_moved", {
offsetTop : this.offsetTop,
@yosiat
yosiat / Homebrew config.log
Created August 12, 2012 19:35
homebrew failure of installing libnet
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libnet configure 1.1.6, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libnet/1.1.6
## --------- ##
## Platform. ##
@yosiat
yosiat / servo - "make check"
Created July 23, 2012 16:56
servo "make check" failure snippt for issue reporting
ake tools
make -C config tools
make[3]: Nothing to be done for `tools'.
make -C editline tools
make[3]: Nothing to be done for `tools'.
make -C shell tools
make[3]: Nothing to be done for `tools'.
make -C jsapi-tests tools
make[3]: Nothing to be done for `tools'.
make -C tests tools