Skip to content

Instantly share code, notes, and snippets.

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@rlazoti
rlazoti / aws-certification.md
Created February 19, 2020 17:30 — forked from miglen/aws-certification.md
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams


AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.
import Foundation
func add(a: Int, b: Int) -> Int { return a + b }
func sub(a: Int, b: Int) -> Int { return a - b }
func calculate(a: Int, b: Int, fn: (Int, Int) -> Int) -> Int { return fn(a, b) }
let sumOfTwoNumbers = calculate(10, 20, add)
let subOfTwoNumbers = calculate(30, 28, sub)

Keybase proof

I hereby claim:

  • I am rlazoti on github.
  • I am rodrigolazoti (https://keybase.io/rodrigolazoti) on keybase.
  • I have a public key whose fingerprint is 2DB2 ACF1 89E0 5EE5 8319 CBB8 8A73 9E3E 877F 83DC

To claim this, I am signing this object:

import java.util.ArrayList
import scala.collection.JavaConversions._
import com.stumbleupon.async.{Callback, Deferred}
import org.hbase.async.{HBaseClient, KeyValue, Scanner}
import com.twitter.util.{Future, Promise, Return, Throw}
/** Converts a Deferred into a Future. */
implicit def futureFromDeferred[A](d: Deferred[A]): Future[A] = {
val promise = new Promise[A]
@rlazoti
rlazoti / modulejs-example
Last active December 22, 2015 05:28
module.js example
Module("MyModule", function(MyModule) {
function privateMethod() {}
MyModule.fn.publicMethod = function() {};
});
@rlazoti
rlazoti / gist:4979532
Last active December 13, 2015 21:48
Exemplo de controller do vraptor usando vraptor-authentication.
@Resource
public class AuthenticationController {
private AuthenticationControl authenticationControl;
public AuthenticationController(AuthenticationControl authenticationControl) {
this.authenticationControl = authenticationControl;
}
@Login
@rlazoti
rlazoti / robot.js
Created December 1, 2012 14:34
Grinder
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@rlazoti
rlazoti / fluent-plugin-hbase.rb
Created September 25, 2012 18:46 — forked from oza/fluent-plugin-hbase.rb
The fluent plugin for hbase.
module Fluent
class HbaseOutput < Fluent::BufferedOutput
Fluent::Plugin.register_output('hbase', self)
def initialize
super
require 'rubygems'
require 'stargate'
@rlazoti
rlazoti / OSX Defaults
Created June 17, 2012 08:17
OSX Defaults
#enable itunes notification in the dock
defaults write com.apple.dock itunes-notifications -bool TRUE
defaults write com.apple.dock notification-always-show-image -bool TRUE
#show hidden files in the Finder
defaults write com.apple.Finder AppleShowAllFiles YES
#expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true