Skip to content

Instantly share code, notes, and snippets.

Codiodes codiodes

Block or report user

Report or block codiodes

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
@codiodes
codiodes / StaticBlockBeforeMain.java
Last active Dec 7, 2017
Demonstration of Static Block being called before Main method in Java
View StaticBlockBeforeMain.java
public class StaticBlockBeforeMain {
static
{
System.out.println("Inside Static Block");
}
public static void main(String[] args) {
System.out.println("Inside Main Method");
}
}
@codiodes
codiodes / StaticBlock.java
Last active Dec 7, 2017
Static Block in Java
View StaticBlock.java
class MyClass {
static {
System.out.println("Static Blocks in Java by Codiodes");
System.exit(0);
}
public static void main(String[] args) {
// Initialization
}
}
@codiodes
codiodes / AngularJSPromises.js
Last active Nov 1, 2017
AngularJS Promises Use
View AngularJSPromises.js
//controller
angular.module('app.controllers')
.controller('GitCtrl', function(GitApi) {
GitApi.fetchUser('codiodes')
.then(function(user) {
console.log(user);
}, function(error) {
console.log(error);
})
})
You can’t perform that action at this time.