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
/target | |
/.settings | |
/.classpath | |
/.project | |
/ear/target | |
/ear/.settings | |
/ear/.project | |
/ejb/.settings |
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 br.com.localhost8080.exemplo; | |
public class UnicodeMain { | |
/** | |
* Unicode character table | |
*/ | |
public static void main(String[] args) { | |
System.out.println | |
( |
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
// map | |
var idList = list.map(function(entity) { | |
return entity.id; | |
}); | |
// reduce | |
var valueTotal = list.reduce(function(valueTotal, entity) { | |
return valueTotal + entity.value; | |
}, 0); |
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
try { | |
String commandLine = "date"; | |
Process process = Runtime.getRuntime().exec(commandLine); | |
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); | |
String value = bufferedReader.readLine(); | |
TextView dateTextView = (TextView) findViewById(R.id.text_view_date); | |
dateTextView.setText(value); | |
} catch (IOException e) { | |
e.printStackTrace(); |
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
var db = null; | |
if(window.cordova) { | |
// used in cell phones | |
db = $cordovaSQLite.openDB("myapp.db"); | |
} else { | |
// used in web browsers | |
db = window.openDatabase("myapp.db", "1.0", "MyApp", -1); | |
} |
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
// Generated on 2016-03-15 using generator-angular 0.15.1 | |
// Based on this one: https://github.com/yeoman/generator-angular/issues/1299 | |
'use strict'; | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var openURL = require('open'); | |
var lazypipe = require('lazypipe'); | |
var rimraf = require('rimraf'); | |
var wiredep = require('wiredep').stream; |