Skip to content

Instantly share code, notes, and snippets.

View wwdablu's full-sized avatar
:octocat:
Looking for other developers to create open source android libraries.

Soumya wwdablu

:octocat:
Looking for other developers to create open source android libraries.
View GitHub Profile
textViewAnimator
.typewrite("Android animation library")
.then(waitFor = 1000) {
imageViewAnimator.flipAndSetImage(Axis.X, R.drawable.ic_love, 300)
textViewAnimator.typewrite("ViewAnimator")
.then(waitFor = 1000) {
var heartBeat = 0
imageViewAnimator.loop({ viewAnimator, callback ->
viewAnimator.scale(2F, 100).then {
it.scale(1F, 100).then {
FontItem fontItem = FontBuilder.create("Dashboard")
.selectedTextColor(Color.BLACK)
.unSelectedTextColor(Color.GRAY)
.selectedTextSize(16) //SP
.unSelectedTextSize(12) //SP
.setTypeface(Typeface.createFromAsset(getAssets(), "coffeesugar.ttf"))
.build();
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.get('/', function (req, res) {
res.send(JSON.stringify({ identity: 'Mockpress'}));
});
app.listen(port, function () {
console.log('Mockpress is listning...');
@wwdablu
wwdablu / main.js
Last active October 6, 2019 21:29
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.get('/', function (req, res) {
res.send(JSON.stringify({ identity: 'Mockpress'}));
});
app.listen(port, function () {
console.log('Mockpress is listning...');
The application does not send any user specific data to any remote server. All of them are kept in the local phone.
{
"contents" : [
{
"type" : "text",
"content" : "SimplyPdf developer, Soumya Kanti Kar",
"properties" : {
"size" : 24,
"color" : "#000000",
"underline" : true,
"strikethrough" : false
TextProperties textProperties = new TextProperties();
textProperties.textSize = 24;
textProperties.typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD);
textProperties.alignment = Layout.Alignment.ALIGN_CENTER;
TextComposer textComposer = new TextComposer(simplyPdfDocument);
textComposer.write("SimplyPDF", textProperties);
simplyPdfDocument = SimplyPdf.with(this, new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.pdf"))
.colorMode(DocumentInfo.ColorMode.COLOR)
.paperSize(PrintAttributes.MediaSize.ISO_A4)
.margin(DocumentInfo.Margins.DEFAULT)
.paperOrientation(DocumentInfo.Orientation.PORTRAIT)
.build();
textComposer = simplyPdfDocument.getTextComposer();
TextComposer.Properties textProperties = new TextComposer.Properties();
textProperties.textSize = 24;
textProperties.typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD);
textProperties.alignment = Layout.Alignment.ALIGN_CENTER;
textComposer.write("SimplyPDF", textProperties);
textProperties.typeface = null;
simplyPdfDocument = SimplyPdf.with(this, new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.pdf"))
.colorMode(DocumentInfo.ColorMode.COLOR)
.paperSize(PrintAttributes.MediaSize.ISO_A4)
.margin(DocumentInfo.Margins.DEFAULT)
.paperOrientation(DocumentInfo.Orientation.PORTRAIT)
.build();