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:
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 { |
I hereby claim:
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) |
I hereby claim:
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) { |
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 |