Skip to content

Instantly share code, notes, and snippets.

View marcosvm's full-sized avatar
:octocat:

Marcos Oliveira marcosvm

:octocat:
  • Dublin, CA
View GitHub Profile
diff --git a/host/lib.rs b/host/lib.rs
index 744af9de..8540220c 100644
--- a/host/lib.rs
+++ b/host/lib.rs
@@ -118,28 +118,33 @@ fn test_all_things_host() {
let tests = vec![
(
"sql001.data.noop.wd:3306",
- Host {
+ Ok(Host {

Keybase proof

I hereby claim:

  • I am marcosvm on github.
  • I am marcosvm (https://keybase.io/marcosvm) on keybase.
  • I have a public key ASAwNMLB3SGHIGysEu42DH6AgMhOPX0qHYyxqoAjcwgM1wo

To claim this, I am signing this object:

type Message struct {
Name string
Body string
}
m := Message{"Error", "You've got bad data"}
b, err := json.Marshal(m)
@marcosvm
marcosvm / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am marcosvm on github.
  • I am marcosvm (https://keybase.io/marcosvm) on keybase.
  • I have a public key whose fingerprint is FD6C 78B2 D29F 9346 BF41 AE9E E28A CDC8 DD19 9FE9

To claim this, I am signing this object:

class Forecast < ActiveRecord::Base
def compare_to_other(other)
low_amplitude = low - other.low
if low_amplitude > 0
"Cooler"
else
"Warmer"
end
end
/**
* Returns a <tt>Integer</tt> instance representing the specified
* <tt>int</tt> value.
* If a new <tt>Integer</tt> instance is not required, this method
* should generally be used in preference to the constructor
* {@link #Integer(int)}, as this method is likely to yield
* significantly better space and time performance by caching
* frequently requested values.
*
* @param i an <code>int</code> value.
#!/bin/bash
set -e
file_pattern=$1
function main {
for rev in `revisions`; do
echo "`number_of_lines` `commit_description`"
done
var yui = require('yui3').YUI
, prettyDate = require('./pretty').prettyDate;
exports.load = function(req, res, next) {
yui().use('io','json', function(Y) {
// Y.io('http://localhost:1337', {
Y.io('https://github.com/marcosvm.json', {
on: {
success: function(id, o) {
var raw_events = Y.JSON.parse(o.responseText)
YUI({
debug: true
}).use('node','io', function(page) {
page.one("title").set('innerHTML','Dig News Headlines')
var ul = page.one('body').appendChild(page.Node.create('<ul></ul>'))
YUI().use('node', function(remotePage) {
var url = "http://digg.com/news"
remotePage.fetch(url, function() {
var newsItems = remotePage.all("#story-items h3")
newsItems.each(function(c) {
@marcosvm
marcosvm / Questions
Created June 22, 2011 16:59
Kiwi Pycon Give-away
GitHub username: marcosvm
Day job: software engineer
Favorite open source project: node.js
Open Source contributions (if any): Nodester
Stranded on an island, what 3 items do you take: tent, Mario Puzo's The Godfather, sunglasses
Tie-breaker, pick a number between 1 and 20,000: 708