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.util.ArrayList; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Objects; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; |
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.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import org.apache.commons.codec.binary.Base64; | |
public class Base64FileToImage { |
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
'use strict'; | |
/** | |
* @ngdoc filter | |
* @function | |
* @description | |
* # dateTimeFormat | |
* Filter in the engagedAcademicApp. | |
*/ | |
angular.module('myApp') |
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
angular.module('YOUR_APP').value('relativeDateTranslations', { | |
just_now: 'Agora', | |
seconds_ago:'a {{time}} segundos', | |
a_minute_ago:'a 1 min', | |
minutes_ago:'a {{time}} min', | |
an_hour_ago:'a 1h', | |
hours_ago:'a {{time}}h', | |
a_day_ago:'Ontem', | |
days_ago:'a {{time}} dias', | |
a_week_ago:'a 1 semana', |
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 is_email(email){ | |
var er = /^[a-zA-Z0-9][a-zA-Z0-9\._-]+@([a-zA-Z0-9\._-]+\.)[a-zA-Z-0-9]{2}/; | |
if( !er.exec(email) ) | |
{ | |
return false; | |
} | |
return true; | |
} |
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
{ | |
"key": "diasEmQueTrabalha", | |
"type": "multiCheckbox", | |
"templateOptions": { | |
"label": "Dias em que trabalha", | |
"labelProp":"label", | |
"valueProp":"value", | |
"required":true, | |
"options": [ | |
{ |
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
formlyConfig.setType({ | |
name: 'angucomplete-remote', | |
//template: '<input show-weeks="false" class="form-control" min-date="to.minDate" ng-model="model[options.key]" is-open="to.isOpen" datepicker-options="to.datepickerOptions" />', | |
template: '<angucomplete-alt id="{{to.id}}" placeholder="{{to.placeholder}}" pause="{{to.pause}}" selected-object="model[options.key]" remote-url="'+endpoint+'{{to.url}}" '+ | |
'description-field="{{to.label}}" search-fields="{{to.searchField}}" text-no-results="{{to.textNoResults}}" input-class="form-control form-control-small" title-field="{{to.titleField}}" match-class="{{to.matchClass}}" text-searching="{{to.textSearching}}"/>', | |
//templateUrl: 'datepicker.html', | |
wrapper: ['bootstrapLabel', 'bootstrapHasError'], | |
defaultOptions: { | |
ngModelAttrs: ngModelAttrs, | |
templateOptions: { |
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
gulp.task('dep-inject',function(done){ | |
//Removing angularjs,ionic-bundle put angular already | |
var depInject = bowerFiles(); | |
var idxRemove = -1; | |
for(var x=1;x<depInject.length;x++){ | |
if(depInject[x].indexOf('angular.js')>-1){ | |
idxRemove = x; | |
break; | |
} |
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
[{"ddi":"93","pais":"AFEGANISTAO"}, | |
{"ddi":"27","pais":"AFRICA DOUL"}, | |
{"ddi":"1","pais":"ALASCA"}, | |
{"ddi":"355","pais":"ALBANIA"}, | |
{"ddi":"49","pais":"ALEMANHA"}, | |
{"ddi":"376","pais":"ANDORRA"}, | |
{"ddi":"244","pais":"ANGOLA"}, | |
{"ddi":"1","pais":"ANGUILLA"}, | |
{"ddi":"599","pais":"ANT.HOLANDESAS"}, | |
{"ddi":"1","pais":"ANTIGUA"}, |
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
window.open('data:text/csv;charset=utf-8,' + escape(YOUR_VARIABLE_TEXT)); |
OlderNewer