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
var app = angular.module('app', []); | |
app.controller("ListagemController", function($scope){ | |
$scope.itens = []; | |
for (var i = 1; i <= 16; i++) { | |
$scope.itens.push({text: i}); | |
}; | |
}) |
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
$ python rosie.py run | |
2017-02-14 10:04:27 Creating the CSV file | |
2017-02-14 10:04:27 Reading the XML file | |
2017-02-14 10:04:28 Writing record #4,949 to the CSV | |
2017-02-14 10:04:28 Done! | |
2017-02-14 10:04:28 Creating the CSV file | |
2017-02-14 10:04:28 Reading the XML file | |
2017-02-14 10:05:38 Writing record #343,681 to the CSV | |
2017-02-14 10:05:38 Done! | |
2017-02-14 10:05:38 Creating the CSV file |
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
@media (min-width: 1000px) and (max-width:1380px){ | |
.politician-profile .bg-img{ | |
background-image: url(../img/fundo_app_dog_media.png); | |
height: 90%; | |
} | |
} | |
@media (min-width:720px) and (max-width:1000px){ | |
.politician-profile .bg-img{ | |
background-image: url(../img/fundo_app_dog_peq.png); |
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
<?php | |
namespace App; | |
use Illuminate\Notifications\Notifiable; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class User extends Authenticatable | |
{ | |
use Notifiable; |
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
<?php | |
namespace SniffPolitic\Http\Controllers; | |
use Illuminate\Http\Request; | |
use ArrayObject; | |
use SniffPolitic\Despesa; | |
use SniffPolitic\User; | |
use SniffPolitic\Politician; |
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
import mysql.connector | |
import json | |
from pprint import pprint | |
print('Antes Mysql') | |
cnx = mysql.connector.connect(user='root', password='7qt5wzs6', | |
host='mypolitician02', | |
database='meupolitico') |
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
import ijson | |
jsonData = ijson.items(open('file_path/file.json', encoding='latin-1'), 'DESPESA.item') | |
for prefix in jsonData: | |
for key,value in prefix.items(): | |
print('key: ', key) | |
print(' value: ', value) |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /home/vanessa/oferecimento/dist | |
ServerName oferecimento.dev.oficina5.com.br | |
ServerAlias oferecimento.dev.oficina5.com.br | |
<Directory "/home/vanessa/oferecimento/dist/"> | |
AllowOverride All | |
</Directory> |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /home/vanessa/oferecimento/dist | |
ServerName oferecimento.dev.oficina5.com.br | |
ServerAlias oferecimento.dev.oficina5.com.br | |
<Directory "/home/vanessa/oferecimento/dist/"> | |
AllowOverride All | |
</Directory> |
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
#Erro de rota no Angular 4, após gerar versão de produção (Apache) | |
#$ ng build --prod | |
#Acrescentar na pasta dist/ um arquivo com nome de .htaccess com os dados abaixo! | |
RewriteEngine on | |
# Don't rewrite files or directories | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] |
OlderNewer