README is empty
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() { | |
'use strict'; | |
angular.module('ngTweets', []).service('tweets', ["$http", function($http) { | |
var service = this; | |
this.get = function(config) { | |
return $http({ | |
url: url(config.widgetId, config.lang), | |
method: 'JSONP', | |
transformResponse: appendTransform($http.defaults.transformResponse, function(value) { | |
return parse(value); |
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 function | |
* @name $localstorage | |
* @description | |
* # $localstorage | |
*/ | |
angular.module('app').factory('$localstorage', function($window) { | |
return { | |
set: function(key, value) { |
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 isCPF(value) { | |
console.log(value); | |
// value = jQuery.trim(value); | |
cpf = value.toString(); //.replace(/.|-|/gi, ''); // elimina .(ponto), -(hifem) e /(barra) | |
while (cpf.length < 11) cpf = "0" + cpf; | |
var expReg = /^0+$|^1+$|^2+$|^3+$|^4+$|^5+$|^6+$|^7+$|^8+$|^9+$/; | |
var a = []; | |
var b = new Number; | |
var c = 11; | |
for (i = 0; i < 11; i++) { |
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
var v_obj, v_fun; | |
function mascara(o, f) { | |
v_obj = o; | |
v_fun = f; | |
setTimeout("execmascara()", 1); | |
} | |
function execmascara() { | |
v_obj.value = v_fun(v_obj.value); |
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
if (!String.linkify) { | |
String.prototype.linkify = function() { | |
// http://, https://, ftp:// | |
var urlPattern = /\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim; | |
// www. sans http:// or https:// | |
var pseudoUrlPattern = /(^|[^\/])(www\.[\S]+(\b|$))/gim; | |
// Email addresses |
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
/* | |
data-req="true" | |
data-validation="date/cpf/email/placa" | |
data-eq-value="" | |
*/ | |
function vform(id) { | |
var obj = { | |
status: true, | |
validation: {} | |
}; |
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 function | |
* @name app.service:API | |
* @description | |
* # API | |
*/ | |
angular.module('app').service('Alerts', function($ionicLoading, $ionicPopup, $http, $ionicHistory, $location) { | |
return { |
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
public class ArvoreBinaria { | |
private No raiz; | |
private ArvoreBinaria arvoreEsquerda; | |
private ArvoreBinaria arvoreDireita; | |
public ArvoreBinaria() { } | |
public ArvoreBinaria getArvoreDireita() { | |
return arvoreDireita; | |
} |
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
export enum EVENTS { | |
SIGNIN, | |
SIGNOUT, | |
SIGNUP | |
}; | |
export const URLS = { | |
signup: '/1/user/signup', | |
token: '/token', | |
requestResetPassword: '/1/user/requestResetPassword', |
OlderNewer