R.reduce(
(acc, x) => R.compose(
R.flip(R.prepend)(acc),
R.sum,
R.map(R.add(1))
)([x,...acc]),
[0]
)([13, 28])
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
angular.module('test', []) | |
.controller('TesteCtrl', function($scope){ | |
$scope.modelo = { | |
nome: 'jouderian', | |
sexo: "masculino", | |
idade: 24 | |
} | |
$scope.modeloToUpdate = {} |
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
SEAKING | |
1 | |
---------- | |
---------- | |
POLIWHIRL | |
1 | |
---------- | |
---------- | |
WEEPINBELL | |
1 |
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
------------------ | |
-3.7305983199606447, -38.52608653898308 | |
07c74854a41 | |
Tue Sep 20 2016 20:41:24 GMT-0300 (BRT) | |
------------------ | |
------------------ | |
-3.7305983199606447, -38.52608653898308 | |
07c74854a41 | |
Tue Sep 20 2016 20:41:24 GMT-0300 (BRT) | |
------------------ |
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
------------------ | |
-3.7305983199606447, -38.52608653898308 | |
07c74854a41 | |
Tue Sep 20 2016 20:41:24 GMT-0300 (BRT) | |
------------------ | |
------------------ | |
-3.7305983199606447, -38.52608653898308 | |
07c74854a41 | |
Tue Sep 20 2016 20:41:24 GMT-0300 (BRT) | |
------------------ |
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
function removeSpecialChars(str) { | |
return str.replace(/ /gi,"").replace(/[_\W]/gi,"").toLowerCase(); | |
} | |
function reverseString(str) { | |
return str.split('').reverse().join(''); | |
} | |
function palindrome(str) { | |
var cleanedString = removeSpecialChars(str); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<input type="text" id="numero1" placeholder="digite o primeiro numero"> | |
<input type="text" id="numero2" placeholder="digite o segundo numero"> | |
<button id="oi">calcular</button> |
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
---------------------------------------------------------------------- | |
-- Type | |
type alias Package = | |
{ id : String | |
, deliverySlot : DeliverySlot | |
, deliveryAddress : Address | |
, pickupAddress : Address | |
, status : String | |
, tenantId : String |
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
---------------------------------------------------------------------- | |
-- Type | |
type alias Package = | |
{ id : String | |
, deliverySlot : DeliverySlot | |
, deliveryAddress : Address | |
, pickupAddress : Address | |
, status : String | |
, tenantId : String |