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
(function(){ | |
app.controller('enricherCtrl', [ | |
'api', | |
'$location', | |
'$scope', | |
'$http', | |
'$state', | |
'$timeout', | |
enricherController | |
]) |
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
<div class="row"> | |
<div class="col-md-12"> | |
<!-- BEGIN EXAMPLE TABLE PORTLET--> | |
<div class="portlet light"> | |
<div class="portlet-title"> | |
<div class="caption"> | |
<i class="fa fa-cogs font-green-sharp"></i> | |
<span class="caption-subject font-green-sharp bold uppercase">Adicionar novo cupom</span> | |
</div> |
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
# Tested with Mac OS X 10.11.2 El Capitan & MAMP 3.5 | |
# Jan 17, 2016 | |
# original gist: https://gist.github.com/kkirsche/5710272 | |
########################################### | |
# Composer & MAMP's installation of PHP 7 # | |
########################################### | |
echo "alias phpmamp='/Applications/MAMP/bin/php/php7.0.0/bin/php'" >> ~/.bash_profile | |
source ~/.bash_profile |
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
let text = 'JavaScript is cool '; | |
console.log(text.includes('is')); |
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
package pdxtractor; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import org.apache.tika.exception.TikaException; | |
import org.apache.tika.metadata.Metadata; | |
import org.apache.tika.parser.ParseContext; | |
import org.apache.tika.parser.pdf.PDFParser; |
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 path = require('path') | |
var fs = require('fs'); | |
var findInFiles = require('find-in-files'); | |
var filePath = path.join(__dirname, './file.pdf') | |
var extract = require('pdf-text-extract') | |
extract(filePath, function (err, pages) { | |
if (err) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script src="leaflet-providers.js"></script> | |
</head> | |
<body> | |
<div id="map" style="width: 100%; height: 300px;"></div> | |
<script type="text/javascript"> |
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
'use strict'; | |
import moment from 'moment'; | |
import React from 'react'; | |
import { StackNavigator } from 'react-navigation'; | |
import { Text, Button, View, StatusBar, Image } from 'react-native'; | |
import { GiftedForm, GiftedFormManager } from 'react-native-gifted-form'; | |
import { Actions } from 'react-native-router-flux'; | |
import styles from './styles'; | |
const logo = require('../../../../assets/img/logo/logo.png') |
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, { Component } from 'react'; | |
import { View, Text, StatusBar, Image, ScrollView, TouchableOpacity, AsyncStorage } from 'react-native'; | |
import { Actions } from 'react-native-router-flux'; | |
import axios from 'axios'; | |
import css from '../../styles/main-styles'; | |
import { api } from '../../../env'; | |
import OneSignal from 'react-native-onesignal'; | |
const insurances = require('../../../assets/img/icons/icon_seguros.png'); | |
const notification = require('../../../assets/img/icons/icon_notificacoes.png'); |
OlderNewer