View gist:5066119
userInfoCol.setCellFactory(new Callback<TableColumn<MTweet, MUser>, | |
TableCell<MTweet, MUser>>() { | |
@Override | |
public TableCell<MTweet, MUser> call(TableColumn<MTweet, MUser> param) { | |
return new TableCell<MTweet, MUser>() { | |
VBox vb; | |
Label userName; | |
Label screenName; | |
ImageView imgVw; |
View interfaces
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
iface wlan0 inet manual | |
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp |
View BasicReadingEntity
package org.thehecklers; | |
import org.springframework.stereotype.Component; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
@Entity |
View BasicReadingRepository
package org.thehecklers; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.data.rest.core.annotation.RepositoryRestResource; | |
@RepositoryRestResource | |
public interface ReadingRepository extends CrudRepository<Reading, Long> { | |
} |
View curl_POSTreading
curl -X POST -H "Content-Type: application/json" -d "{\"temperature\": 26.0, \"humidity\": 35.0}" localhost:8080/readings |
View curl_GETreadings
curl localhost:8080/readings |
View curl_GETreadings_output
{ | |
"_embedded" : { | |
"readings" : [ { | |
"temperature" : 25.0, | |
"humidity" : 34.0, | |
"_links" : { | |
"self" : { | |
"href" : "http://localhost:8080/readings/1" | |
}, | |
"reading" : { |
View Random Route manifest.yml example
--- | |
applications: | |
- name: example-app | |
path: target/example-app-0.0.1-SNAPSHOT.jar | |
memory: 512M | |
random-route: true |
OlderNewer