Skip to content

Instantly share code, notes, and snippets.

View jbueza's full-sized avatar

Jaime Bueza jbueza

View GitHub Profile
dojo.provide("stdlib.command.MapControllersCommand");
dojo.require("mojo.command.Command");
dojo.declare("stdlib.command.MapControllersCommand", mojo.command.Command, {
execute: function(requestObj) {
var contextObj = null;
if(requestObj.getParams()) {
// parameters: contextObj: String or HTMLElement
<div id="map_canvas" style="width: 400px; height: 600px"></div>
<script type="text/javascript">
jQuery(document).ready(function($){
// load the data
$.getScript('js/store.js', function() {
//this gets invoked after store.js loads
var myLatlng = new google.maps.LatLng(65.000, 16.500 );
var myOptions = {
@jbueza
jbueza / jquery.bovan.js
Created November 24, 2010 17:55
The Bovan Plugin lol
(function( $ ){
$.fn.bovan = function() {
console.log("hello, this is: ", this);
};
})( jQuery );
$(document).ready(function() {
@jbueza
jbueza / wtfcheck.js
Created November 25, 2010 12:27 — forked from bovan/wtfcheck.js
var data = $(document.body).data('trafikk');
$(data).each(function(index, value){
// filter function
$(data[index].ActualCounties).each(function(i, county){
// if road is in more than 1 county, iterate
if(!$.isArray(county.String )) county.String = [count.String];
data[index].include = (filter.indexOf(county.String.join()) < 0) ? false: true;
var express = require('express')
var app = express.createServer();
var contentHash = {'sha1:content' : 'your mom'};
app.configure(function() {
app.use(express.methodOverride())
app.use(express.bodyDecoder())
app.use(app.router)
});
//this is very dirty
(condition) ? function() {
//o yes!
}() : function() {
//o noes!
}();
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
class Animal
talk: (value) -> console.log value
var Animal;
Animal = (function() {
function Animal() {}
Animal.prototype.talk = function(value) {
return console.log(value);
};
return Animal;
})();
when("a user lands on the page")
.it("should always have the correct title", function() {
})
.it("should always have ten items in the Top 10 Benchmarks carousel", function() {
})
.it("should always have three tabs in the hero carousel", function() {