Skip to content

Instantly share code, notes, and snippets.

View jbueza's full-sized avatar

Jaime Bueza jbueza

View GitHub Profile
alias editnginx='mate /opt/local/etc/nginx/nginx.conf'
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias ll='ls -al'
alias search=grep
alias ..='cd ..'
alias ...='cd ../..'
alias rm='rm -i'
alias df='df -h'
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
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 );
}
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).
@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;
#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 / 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: ->
@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");
}
};
});
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() {