Skip to content

Instantly share code, notes, and snippets.

Oscar Reyes oscarryz

Block or report user

Report or block oscarryz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Element.js
ElementHandle {
_context:
ExecutionContext {
_client:
CDPSession {
_events: [Object],
_eventsCount: 27,
_maxListeners: undefined,
_callbacks: Map {},
_connection: [Connection],
View A.java
abstract class A {
public String s() {
return this.getClass().getName();
}
}
class B extends A {
public static void main(String...args) {
System.out.println(B.class.getName());
System.out.println(new B().s());
}
View Open JDK.md
View hash.json
{
"hash": "87b6c030d59c1c74357bb19a89d206517e09df2d"
}
View NotInherited.java
//A.java
class A {
private int i;
public String toString() { return ""+ i; }
}
// B.java
class B extends A {}
// Main.java
class Main {
public static void main( String [] args ) {
View MethodReference.java
import java.util.function.BiConsumer;
import java.util.Arrays;
import java.util.List;
class SimpleClass {
void methodA(String a, String b) {
System.out.printf("%s %s%n", a, b);
}
}
View Mano.java
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
public class Mano {
View LombokExample.md
import lombok.Data;

@Data
class Empleado {
    private final Departamento departamento;
    private final String nombre;
}

@Data
class Departamento {
View Using goimports with vim on OSX.md

Sooo...

I thought it would be easier to setup goimports to use it with vim, and probably it is, but I had a lot of problems on the way.

Here's a quick summary of what I did at the end.

Note: I already had go installed and my GOPATH envrionment variable set.

  1. If fish shell is the default shell change it to something else ( I reverted to bash)
You can’t perform that action at this time.