Skip to content

Instantly share code, notes, and snippets.

View jbueza's full-sized avatar

Jaime Bueza jbueza

View GitHub Profile
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<title>Error 502 (Server Error)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADVCAMAAAAfHvCaAAAAGFBMVEVYn%2BH%2F%2F%2F%2Bex%2B3U5vd7s%2Bfq8%2Fs0itq72PMLUPvtAAASvklEQVR4AbXBC0JqCQxEwT5Jd7L%2FHc8FdR4g%2BEGtEr8u%2FBHxu7otdzd%2FQPyqlmRp1Pw%2B8aukDfRa1fw28ZtWy4sa89vEb7LCi0zx28RvqgkvouW3id%2FU8pbtWmv5beJXRWNrRmp%2BnfhlHXZm%2BQPi95Vk%2FoD4fZbMHxC%2FryTzB8Tva435A%2BL3rcb8AfH7VjJ%2FQPy%2BHYk%2FIH5facwfEL8iaZcrnKyn%2BAPi57K2VL2WF1hJ%2FAHxQ2tJrg6HteXVjPkD4ge6V3J1%2BF97zhx%2BnXhWb8nacKXlnYPErxNPyfqw4ZYKVuUZdfhd4hmxunY73NICgfWMOvwm8ZQ1pMvlDZdaCic98kjV4beIp8ScpLvsSvhflzqQmqVLB281v0E8pc2bdNne8EayNTPNSbt02PBj4intcKltb%2FNibY%2BLf9aSO%2FyMeMo6XMva3g0vwrWsxvyMeEoc3knZ2g53ZaXa8DzxlHa4J23Jae5aycXTxFPa4WRdXAtdsivckZXG4TniKWtOSlre6y7LG651Wxq5OzxDPGUVIKNwX6ekCv%2B0ddglVPMM8ZQ10FJ4LGVvOEuXRl7OqnmGeEor4Ck%2BtnI1ZEvjDa%2Fc
mojo.require("app.extensions.SomeLibrary"); //I am against this as we should always
//package all extensions during deployment
/*
* @class Registration Controller
* @author Jaime Bueza
* @context #registration-form
*/
mojo.define("app.controller.RegistrationController", {
addObservers: function() {
@jbueza
jbueza / Mojo Controller Design
Created September 4, 2011 04:41
Testing out a Mojo Controller Design
mojo.define("HelloWorld.controller.Controller", function() {
var self = this;
return {
addObservers: function() {
self.addObserver("li", "onclick", "ServiceCommand");
}
};
});
@jbueza
jbueza / RegistrationController.coffee
Created August 24, 2011 06:32
Designing the API for a Mojo v2 in CoffeeScript
class app.controller.RegistrationController extends mojo.controller.Controller
addObservers: ->
@addObserver "li", "click", "ServiceCommand"
addCommands: ->
@addCommand "ServiceCommand", "stdlib.command.ServiceCommand"
addIntercepts: ->
#git aliases
alias glo='git log --oneline --decorate'
alias gst='git status'
alias gci='git commit'
alias gp='git push'
alias gpom='git pull origin master'
alias gco='git checkout'
alias gl='git pull'
alias gd='git diff | mate'
alias gb='git branch'
@jbueza
jbueza / mojo_jq_zepto_connector.js
Created August 11, 2011 17:26 — forked from steveluscher/mojo_dojo_connector.js
A Mojo->jQuery/Zepto connector; re-implement these methods in another library, and you can use Mojo 2.0 without Dojo.
/* Mojo-jQuery/Zepto connector */
(function() {
if(typeof mojo == 'undefined') mojo = {};
mojo.addOnUnload = jQuery.unload;
mojo.clone = dojo.clone; //TODO
mojo.config = dojo.config; //TODO
mojo.connect = jQuery.bind;
mojo.declare = dojo.declare; //via RequireJS? define()/require() AMD spec
mojo.destroyElement = jQuery.remove;
1. What are the top one or two resources out there that you consider great for developers re: support/motivation/exploration tools (regardless of platform)?
2. What do you NEVER want to see from another tech company again regarding question #1?
3. What’s a kick-ass development platform showcase/best practice site that you go to regularly…and why?
4. What is the single biggest thing (resource, connection, tool) a tech company could deliver to you to make your life easier?
5. What are their biggest hurdles with developing on any MSFT platform (looking for themes here)?
6. If you are already, why are you developing on a MSFT platform? (namely WP7, Azure or Win7).
public class ServiceLocatorTester {
public static void main( String[] args ) {
ServiceLocator serviceLocator =
ServiceLocator.getInstance();
try {
ProjectHome projectHome = (ProjectHome)
serviceLocator.getHome(
ServiceLocator.Services.PROJECT );
}
public class ServiceLocatorTester {
public static void main( String[] args ) {
ServiceLocator serviceLocator =
ServiceLocator.getInstance();
try {
ProjectHome projectHome = (ProjectHome)
serviceLocator.getHome(
ServiceLocator.Services.PROJECT );
}
h1. Microsoft SQL - Homepage Specification
h2. http://www.microsoft.com/sqlserver/en/us/default.aspx
h3. a user lands on the homepage
* should always have the correct title
* should always have ten items in the Top 10 Benchmarks carousel