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 React from 'react' | |
class CtaImage extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { image: null } | |
} | |
componentDidMount() { | |
const { ctaImage } = this.props |
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
Section "InputClass" | |
Identifier "evdev keyboard catchall" | |
MatchIsKeyboard "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
Option "XkbLayout" "br" | |
Option "XkbVariant" "abnt2" | |
EndSection |
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
onSubmit={ async (values, actions) => { | |
let attemps = 1 | |
while ( attemps <= 2) { | |
try { | |
await SupplierService.create(values, token) | |
actions.setSubmitting(false); | |
// TODO: Fetch the paginated data | |
handleOpenSnackBar('Registro inserido com sucesso', 'success') | |
close(); |
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
# -*- coding: utf-8 -*- | |
# Third | |
import iugu | |
# Apps | |
# apps | |
from apps.zipcodes.postmon import postmon_search_cep | |
from apps.zipcodes.zip_code import translate_to_iugu |
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
# -*- coding:utf-8 -*- | |
from __future__ import unicode_literals | |
# Stdlib imports | |
import requests | |
import base64 | |
# Core Django imports | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from django.views.generic import ( |
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
[ | |
// missing accented characters fix for ubuntu 14.10 | |
// a, [á, à, ã, â, å, ä] | |
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}}, | |
{ "keys": ["`","a"], "command": "insert", "args": {"characters": "à"}}, | |
{ "keys": ["~","a"], "command": "insert", "args": {"characters": "ã"}}, | |
{ "keys": ["^","a"], "command": "insert", "args": {"characters": "â"}}, | |
{ "keys": ["°","a"], "command": "insert", "args": {"characters": "å"}}, | |
{ "keys": ["¨","a"], "command": "insert", "args": {"characters": "ä"}}, |
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
# encoding: utf-8 | |
import requests | |
from .exceptions import NotBoundException | |
from .resource import AbstractResource | |
from .settings import BASE_URL | |
from .transaction import Transaction | |
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 crawlerjs = require('crawler-js'); | |
var mongo = require('mongodb'); | |
var monk = require('monk'); | |
var db = monk('localhost:27017/airport'); | |
var crawler = { | |
interval: 1000, | |
getSample: 'http://www.aeroportosdobrasil.com/aeroportos/listagem/1', | |
get: 'http://www.aeroportosdobrasil.com/aeroportos/listagem/[numbers:1:33:1]', | |
preview: 0, |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme", | |
"dictionary": "Packages/Languages/Portuguese/pt_BR.dic", | |
"file_exclude_patterns": | |
[ | |
".*", | |
"*.pyc", | |
"*.pyo", | |
"*.exe", |
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
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |