Skip to content

Instantly share code, notes, and snippets.

View jouderianjr's full-sized avatar
🍕
:o

Jouderian Nobre Junior jouderianjr

🍕
:o
View GitHub Profile
angular.module('test', [])
.controller('TesteCtrl', function($scope){
$scope.modelo = {
nome: 'jouderian',
sexo: "masculino",
idade: 24
}
$scope.modeloToUpdate = {}
SEAKING
1
----------
----------
POLIWHIRL
1
----------
----------
WEEPINBELL
1
------------------
-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)
------------------
------------------
-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)
------------------
@jouderianjr
jouderianjr / explanation.md
Last active November 10, 2017 01:33
LovelyStay
R.reduce(
    (acc, x) => R.compose(
        R.flip(R.prepend)(acc), 
        R.sum,
        R.map(R.add(1))
    )([x,...acc]), 
    [0]
)([13, 28])
@jouderianjr
jouderianjr / .js
Created March 14, 2018 22:53
poitinha
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);
<!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>
----------------------------------------------------------------------
-- Type
type alias Package =
{ id : String
, deliverySlot : DeliverySlot
, deliveryAddress : Address
, pickupAddress : Address
, status : String
, tenantId : String
----------------------------------------------------------------------
-- Type
type alias Package =
{ id : String
, deliverySlot : DeliverySlot
, deliveryAddress : Address
, pickupAddress : Address
, status : String
, tenantId : String

You can use Ellie to "test" the code, changing only the result function and adding your extra code

Extra documentation to use this as reference:

Data Modeling exercises

1 - Represent a package containing:

  • barcode