Skip to content

Instantly share code, notes, and snippets.

View VictorAlbertos's full-sized avatar

Víctor Albertos VictorAlbertos

View GitHub Profile
apply plugin: 'java'
apply plugin: 'me.tatarka.retrolambda'
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
public function send($userId, $message, $email) {
$data = array(
'where' => array('userId' => $userId, 'email' => $email),
'data' => array(
"alert" => $message,
"sound" => "default",
"badge" => "Increment"
)
);
private static class Emitter {
private final String className, methodName, lineNumber;
public Emitter() {
this.className = getNameCurrentClassExecution();
this.methodName = getNameCurrentMethodExecution();
this.lineNumber = getLineNumberExecution();
}
public String getClassName() {
System.out.println("Hello world!");
NSLog(@"Hello world!");
Console.WriteLine("Hello world!");
print("Hello world!")
//I get tired of this nonsense
import Foundation
import ObjectMapper
class News : Mappable {
var id: Int!
var username : String!
var date: String!
var share_url: String!
var image: String!
var title: String!