This file contains hidden or 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
/** | |
* Created by Mariandi on 11/03/2014. | |
*/ | |
/*global angular*/ | |
'use strict'; | |
angular.module('anguvideo',[]) | |
.directive("anguvideo", ['$sce', '$interval', function ($sce, $interval) { | |
return { | |
restrict: 'EA', |
This file contains hidden or 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
expect(element.all(by.repeater('course in courses')).count()).toBeGreaterThan(0); | |
element.all(by.repeater('course in courses')).get(0).click(); | |
expect(element.all(by.repeater('videoItem in videos')).count()).toBeGreaterThan(0); |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
public class Lava : MonoBehaviour { | |
public float x; | |
public float speed; | |
public float distanceTraveled; | |
public bool indo; | |
// Use this for initialization |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
public class walk : MonoBehaviour { | |
public bool andar; | |
//public bool pular; | |
public float movimentoX; | |
public Animator anime; | |
public Rigidbody2D RbPlayer; |
This file contains hidden or 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
<table class="table table-hover video-list table-condensed"> | |
<tbody> | |
<tr ng-class="{'video-active': videoItem.id === video.id}" data-ng-repeat="videoItem in videos" data-as-sortable-item toggle="tooltip" placement="top" title="Clique e arraste para ordenar" > | |
<td ng-click="changeVideo(videoItem)" data-as-sortable-item-handle>{{$index+1}}</td> | |
<td data-as-sortable-item-handle > | |
<span class="btn btn-link btn-xs" role="button" ng-click="changeVideo(videoItem)">{{videoItem.name}}</span> <br> | |
<button type="button" class="btn btn-default btn-xs pull-left" ng-if="validateAssessment(videoItem.assessment)"> | |
Fazer {{assessmentsTypes[videoItem.assessment.type]}} | |
</button> | |
</td> |
This file contains hidden or 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
CREATE OR REPLACE FUNCTION checkCargaHoraria() RETURNS trigger AS $$ | |
DECLARE | |
qtdCargahoraria integer; | |
BEGIN | |
select new.numerocreditos*18 into qtdCargahoraria; | |
if qtdCargahoraria <> new.cargaHoraria THEN | |
RAISE NOTICE 'CARGA HORARIA INVALIDA'; | |
RETURN NULL; | |
END IF; | |
RETURN NEW; |
This file contains hidden or 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
describe('Test login', function() { | |
var ptor = protractor.getInstance(); | |
describe('Login correto', function() { | |
it('Testando login e redirecionamento para os cursos', function() { | |
ptor.get('/#/login'); | |
var form = ptor.findElement(By.id('form-login')); | |
var emailInput = form.findElement(By.id('email')).sendKeys('[email protected]'); | |
var passwordInput = form.findElement(By.id('password')).sendKeys('123mudar'); |
This file contains hidden or 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
// C�digo inspirado em: https://lucene.apache.org/core/quickstart.html | |
// Adaptado para Lucene 5 | |
package pratica15; | |
import java.io.*; | |
// lucene-5.3.1/analysis/common/lucene-analyzers-common-5.3.1.jar | |
import org.apache.lucene.analysis.standard.StandardAnalyzer; |
This file contains hidden or 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
$scope.$on('$locationChangeSuccess', function(event){ | |
var params = $location.search(); | |
if(params.video !== $scope.video.id && $state.current.name =='show-course'){ | |
$scope.changeVideo(findVideoById(params.video, $scope.videos)); | |
} | |
}); |
This file contains hidden or 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
public ArrayList<String> extrairUrls(StringBuilder documento){ | |
ArrayList<String> urls = new ArrayList(); | |
Pattern p = Pattern.compile("http://.*"); | |
for (String s: documento.toString().split(" \"|\'")) { | |
Matcher m = p.matcher(s); | |
while (m.find()) { | |
String u = m.group(); | |
urls.add(u); | |
} | |
} |