Fernando Trasviña azendal

View Nitrogen Server
1 2 3 4 5 6 7 8 9 10
var express = require('express');
var app = express();
app.use(express.bodyParser());
 
app.get('/:model', function (req, res) {
res.json(data[req.params.model]);
});
 
app.get('/:model/:id', function (req, res){
var record = data[req.params.model].filter(function (entry) {
View Object.defineProperties.js
1 2 3 4 5 6 7 8 9 10
Object.defineProperties = function(O, Properties) {
// 1. If Type(O) is not Object throw a TypeError exception.
if (typeof(O) !== "object" || O == null) {
throw TypeError("Object.defineProperties called on non-object");
}
// 2. Let props be ToObject(Properties)
var props = Object(Properties); // not *exactly* the same, but similar enough
// 3. Let names be an internal list containing the names of each enumerable own property of props.
View example
1 2 3 4 5 6 7 8 9 10
# Example CustomEvent
 
class Dispatcher
include CustomEventSupport
include BubblingSupport
 
def set_property(value)
dispatch 'property_change', {:value => value}
end
end
View TreeWalker.js
1 2 3 4 5 6 7 8 9 10
var NodeFilter = {
FILTER_ACCEPT: 1,
FILTER_REJECT: 2,
FILTER_SKIP: 3,
SHOW_ALL: -1,
SHOW_ELEMENT: 1,
SHOW_ATTRIBUTE: 2,
SHOW_TEXT: 4,
SHOW_CDATA_SECTION: 8,
SHOW_ENTITY_REFERENCE: 16,
View Questions
1 2 3 4 5
Day Job: Project Manager @ freshout
Open Source contribution (if any): Elastic, Argon, Neon, Tellurium, Dysprosium, and some more i cant remember
Tell me about your experience with Ruby/Rails: Coding on many different projects for several years going from fast several hours project, to long project that go for several years of continuous development
How do you use GitHub: open source and closed source project, sharing gists and sharing code with the world
Favorite luchador(es): aluche
View gist:1080511
1 2 3 4 5 6 7 8 9 10
class A
#defining static methods
instance_eval do
def x
'x'
end
instance_eval do
private
def private_m
View gist:118327
1 2 3 4 5 6 7 8 9 10
<div class="unit two-columns same-height" style="background:#ffa500;">
<div class="column">
<div class="container" style="height:200px;">
first column with
</div>
</div>
<div class="column">
<div class="unit">
some content
</div>
View gist:101237
1 2 3 4 5 6 7 8 9 10
jQuery(function($){
$('.elastic-gallery').each(function(){
var gallery = this;
$('.right', this).click(function(){
$('.thumbnails-display-container', gallery).animate({
'scrollLeft' : ( $('.thumbnails-display-container', gallery).attr('scrollLeft') + $('.thumbnails-display-container', gallery).width() )
}, 500, 'linear');
});
$('.left', this).click(function(){
$('.thumbnails-display-container', gallery).animate({
View gist:101234
1 2 3 4 5 6 7 8 9 10
.elastic-gallery .thumbnail
{
float:left;
padding:1px;
}
 
.elastic-gallery .image
{
position:absolute;
top:0;
View gist:101231
1 2 3 4 5 6 7 8 9 10
<div class="unit elastic-gallery">
<div class="container horizontal-center" style="width:395px; border:solid 1px grey; padding:5px;">
<div class="unit">
<div class="container" style="padding:10px;">
<div class="unit">
<div class="container horizontal-center image-container" style="width:400px; height:240px; position:relative">
<div class="unit image">
<img src="1.jpg" width="375" height="234" title="" />
</div>
</div>
Something went wrong with that request. Please try again.