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 projetolc.usuario.app.doideira; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class InfoActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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 projetodesenvolvedor.usuario.app.trabalhopratico; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.RadioButton; | |
import android.widget.RadioGroup; | |
import android.widget.TextView; | |
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
package com.example.labc.conversor_altura; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.SeekBar; | |
import android.widget.TextView; | |
import java.util.Locale; |
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 com.example.labc.imccalculator; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.TextView; | |
import android.widget.Toast; | |
public class MainActivity extends AppCompatActivity { |
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 com.example.labc.tconversor; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.TextView; | |
import android.widget.Toast; | |
public class MainActivity extends AppCompatActivity { |
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
clear; | |
clc; | |
disp('zb1(t0, dt, tf, A, B, C, S0, I0)'); | |
disp('dR(1)= (cos(t*%pi/12)+1)*(-A*R(1)-B*R(1)*R(2))+C*R(2)'); | |
disp('dR(2)= -C*R(2)+(cos(t*%pi/12)+1)*(B*R(1)*R(2)+A*R(1))'); | |
disp('zb2(t0, dt, tf, A, B, C, S0, I0)'); | |
disp('dR(1)= A*R(1)-B*R(1)*R(2)'); | |
disp('dR(2)= -C*R(2)+B*R(1)*R(2)'); |
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
grafo = { | |
'a': {'b': 0, 'd': 1, 'e': 2}, | |
'b': {'a': 0, 'c': 4, 'e': 5}, | |
'c': {'b': 4, 'e': 7}, | |
'd': {'a': 1, 'e': 9}, | |
'e': {'a': 2, 'b': 5, 'c': 7, 'd': 9, 'f': 14}, | |
'f': {'e': 14} | |
} | |
def quicksort(vetor,inicio,fim): |
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
sets = {} | |
setsRanked = {} | |
def makeSet(x): | |
sets[x] = set([x]) | |
def find(x): | |
for representative,subset in sets.iteritems(): | |
if x in subset: | |
return representative |
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
function recursive_copy($source, $destination) | |
{ | |
if (is_dir($source) === true) { | |
$success = true; | |
if (!file_exists($destination)) { | |
mkdir($destination, 0777, true); | |
} | |
$files = array_diff(scandir($source), ['.', '..']); |
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
function recurse_delete($path) | |
{ | |
if (is_dir($path) === true) | |
{ | |
$files = array_diff(scandir($path), array('.', '..')); | |
foreach ($files as $file) | |
{ | |
recurse_delete(realpath($path) . '/' . $file); | |
} |