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
/* | |
* Copyright 2015 Farbod Salamat-Zadeh | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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.text.DateFormat; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
// Use example: | |
// DateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); | |
// SplitDateTime splitDateTime = new SplitDateTime("2015-09-01 14:05"); | |
// timeEditText.setText(splitDateTime.getHour + ":" + splitDateTime.getMinute); |
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
#!/bin/bash | |
adb forward tcp:4444 localabstract:/adb-hub | |
adb connect localhost:4444 |
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
#!/usr/bin/env bash | |
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | |
echo -e "Starting translation import\n" | |
#go to home and setup git | |
cd $HOME | |
git config --global user.email "[email protected]" | |
git config --global user.name "Glucat" | |
#clone gh-pages branch |
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
#!/usr/bin/env bash | |
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | |
echo -e "Starting to update gh-pages\n" | |
#copy data we're interested in to other place | |
mkdir $HOME/android/ | |
mkdir $HOME/android/wear | |
cp -R app/build/outputs/apk/app-debug.apk $HOME/android/ | |
cp -R wear/build/outputs/apk/wear-debug.apk $HOME/android/wear |
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.math.BigDecimal; | |
import java.math.RoundingMode; | |
public class GlucoseConverter { | |
public class GlucoseConverter { | |
public int glucoseToMgDl(double mmolL){ | |
// Mg/dL = mmol/L * 18 | |
double converted = mmolL * 18; | |
return (int) converted; | |
} |
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 org.glucosio.android.tools; | |
import android.Manifest; | |
import android.app.Activity; | |
import android.content.pm.PackageManager; | |
import android.os.Environment; | |
import android.support.v4.app.ActivityCompat; | |
import android.util.Log; | |
import android.widget.Toast; |
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
/* | |
* Copyright (C) 2016 Glucosio Foundation | |
* | |
* This file is part of Glucosio. | |
* | |
* Glucosio is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, version 3. | |
* | |
* Glucosio is distributed in the hope that it will be useful, |
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
/* | |
* Copyright (C) 2016 Glucosio Foundation | |
* | |
* This file is part of Glucosio. | |
* | |
* Glucosio is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, version 3. | |
* | |
* Glucosio is distributed in the hope that it will be useful, |
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
numeroSoci = input('Quanto soci vuoi inserire?') | |
for i=1:numeroSoci | |
socio(i).nome= input('nome: ', 's') | |
socio(i).cognome=input('cognome: ', 's') | |
socio(i).cf=input('cf: ', 's') | |
socio(i).qs=input('qs: ', 's') | |
socio(i).ruolo=input('ruolo (AMM 1 - CONS 2 - SOCIO 3): ') | |
end |
OlderNewer