- Layout vs style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Sample Lesson | |
author: Ferran Maylinch | |
# Minimum app version needed for this lesson | |
minAppVersion: "1.0" | |
exercises: | |
- title: Sample Exercise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.mongodb.QueryOperators.*; | |
@Override | |
public List<Coupon> findBuyersByMktc(String mktc, Date start, Date end) | |
{ | |
final DBCursor cursor = coupons.find(obj() | |
.append(FIELD_MKTC, mktc) | |
.append(FIELD_PURCHASED_ON, obj(GTE, start).append(LT, end))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Example { | |
public static void main(String[] args) { | |
System.out.println("I'm an example"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: "Intro to Jess and JavaScript" | |
author: "Ferran Maylinch" | |
lessonVersion: "1.0" | |
minAppVersion: "1.4" | |
exercises: | |
- title: "Intro to Jess" |
In this article I’ll explain about the relationship between callbacks, promises and observable streams (AKA reactive programming).
Some of the examples in this document are written in this jsbin for you to try.
This document was written using the wonderful Markdown editor classeur.io.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample; | |
import java.util.*; // Allow us to use classes from java.util package (List, Map, etc.) without their full name | |
/** | |
* Summary of the building blocks of a programming language. | |
* (Note: this is a class comment) | |
*/ | |
public class ProgrammingBuildingBlocks { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tech.bts.javaexamples; | |
/** | |
* Basic exercises to practice variable declarations and assignments. | |
*/ | |
public class BasicsExercises { | |
public static void main(String[] args) { | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Example { | |
// TODO: Exercise: | |
// Write a function that given a list of words and a number n, returns list of the words longer than n. | |
public static void main(String[] args) { | |
List<String> words; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; // This is necessary to use collections like List, Set, Map | |
public class Collections { | |
public static void main(String... args) { | |
// Wrapper classes ( use them between angle brackets < > ) | |
// Integer, Double, Boolean | |
// Long, Character, Float |
OlderNewer