Skip to content

Instantly share code, notes, and snippets.

View filipecrosk's full-sized avatar
🚀
Working remotely

Filipe Bragança filipecrosk

🚀
Working remotely
View GitHub Profile
@filipecrosk
filipecrosk / payload.js
Created July 6, 2020 20:05
Payload quiz
const payload = {
name: model.name,
email: model.email,
source: ENV.quizFonte, // outbrain, taboola, facebook, google, affiliate
referer: window.document.referrer,
query_string: queryArray,
questions: questionsAndAnswers,
krux_id: this._getParam('krux_id'),
sub_id: this._getParam('sub_id'),
fbclid: this._getParam('fbclid'),
@filipecrosk
filipecrosk / paper_pulse.html
Last active September 22, 2017 21:36
Pulse Animation
<style type="text/css">
.hp-pulse-wrapper{z-index:99995}
.hp-pulse{height:18px;width:18px;position:absolute}
.hp-pulse:before,.hp-pulse:after{position:absolute;margin-top:-63px;margin-left:-63px;content:' ';background-color:rgba(0,126,229,0.1);border-radius:72px;height:144px;width:144px;opacity:0}
.hp-pulse:before{-webkit-animation:pulse-zero 1.5s ease-out infinite;animation:pulse-zero 1.5s ease-out infinite}
.hp-pulse:after{-webkit-animation:pulse-one 1.5s ease-out infinite;animation:pulse-one 1.5s ease-out infinite}
.hp-pulse-button{cursor:pointer;height:82px;width:82px;border-radius:41px;border:none;position:absolute;z-index:100002;top:-32px;left:-32px;background-color:transparent}
.hp-pulse-button:after{content:' ';display:block;position:absolute;top:32px;left:32px;background-color:#007ee5;box-shadow:0 0 0 3px #fff,0 3px 8px 3px rgba(0,0,0,0.2);width:18px;height:18px;border-radius:9px}
.hp-pulse-button.has-children:after{display:none}@-webkit-keyframes pulse-zero{0%{opacity:1;-webkit-trans
@filipecrosk
filipecrosk / about.html
Last active September 1, 2017 18:17
Arrows animation
<div class="arrow-wrapper">
<span class="arrow top left arrow1"></span>
<span class="arrow top right arrow1"></span>
<span class="arrow middle left arrow2"></span>
<span class="arrow middle right arrow2"></span>
<span class="arrow bottom left arrow3"></span>
<span class="arrow bottom right arrow3"></span>
</div>
<style type="text/css">
import Ember from 'ember';
const {
computed
} = Ember;
export default Ember.Component.extend({
patients: computed.mapBy('group', 'patient_name'),
groupPain: computed.mapBy('group', 'pain_value'),
@filipecrosk
filipecrosk / frontend.js
Created June 25, 2016 15:57
Codecorps ember
➜ ~ cd Desktop
➜ Desktop git clone https://github.com/code-corps/code-corps-ember
Cloning into 'code-corps-ember'...
remote: Counting objects: 5254, done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 5254 (delta 28), reused 0 (delta 0), pack-reused 5157
Receiving objects: 100% (5254/5254), 1.78 MiB | 940.00 KiB/s, done.
Resolving deltas: 100% (3363/3363), done.
Checking connectivity... done.
➜ Desktop code
@filipecrosk
filipecrosk / ember-list-banks.js
Created March 24, 2016 18:37
A list of Brazilian Banks
import Ember from 'ember';
export default Ember.Mixin.create({
BrazilianBanks: [
{ 'code': '001', 'name': 'Banco do Brasil'},
{ 'code': '237', 'name': 'Bradesco'},
{ 'code': '341', 'name': 'Itau'},
{ 'code': '104', 'name': 'Caixa Econômica Federal'},
{ 'code': '033', 'name': 'Banco Santander Banespa'},
@filipecrosk
filipecrosk / application.js
Last active September 4, 2015 21:38
Ember-cli deploy with Gulp + Nginx + Ubuntu 14.04
//ember-app-root/app/adapters/application.js
import DS from 'ember-data';
import ENV from '../config/environment';
export default DS.ActiveModelAdapter.extend({
namespace: ENV.apiNamespace
});
{"user":
{"_id":"53e635b82ae90d3ad1a90390",
"account":"53e62798632e73ea6461186a",
"bloodType":null,
"citizenship":null,
"cpf":"",
"doneEncounter":false,
"email":"[email protected]",
"father":"Divino de Oliveira Gomes",
"maritalStatus":"married",
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>New payment</title>
<style type="text/css" media="screen">
/* -------------------------------------
GLOBAL
A very basic CSS reset
<?php
include_once("human_gateway_client_api/HumanClientMain.php");
$humanMultipleSend = new HumanMultipleSend("primeiroestilo.api", "vvb7PR9RVY");
$tipo = HumanMultipleSend::TYPE_C;
$msg_list = "18134652208;Mensagem de teste;001"; //."\n"
$callBack = HumanMultipleSend::CALLBACK_INTERMEDIARY_STATUS;