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> | |
<style> | |
.row div { | |
height: 8px; | |
display: inline-block; | |
width: 8px; | |
} | |
.row div.active { | |
background-color: red; |
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
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
if( ! ini_get('date.timezone') ) | |
{ | |
date_default_timezone_set('GMT'); | |
} | |
header('Access-Control-Allow-Origin: *'); | |
class Dashboard extends CI_Controller{ | |
public function __construct(){ | |
parent::__construct(); | |
$this->load->helper('form'); |
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
<?php include_once 'head.php';?> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<body id="home"> | |
<header id="header"> | |
<nav id="main-nav" class="navbar navbar-default navbar-fixed-top" role="banner"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script> | |
function showMetrics1(){ | |
FB.api( | |
'/viladosilicio/insights/page_fans_country', |
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
basicCSV = require("basic-csv"), | |
fs = require('fs'), | |
nt = require("natural"); | |
var dic = [ | |
"Homicídio", "Homicídio Qualificado", "Óbito", | |
"Comunicação de Homicídio", "Lesão Corporal Seguida de Morte", "Homicídio Doloso", | |
"Latrocínio", "Homicídio Simples", "Belém", | |
"Ananindeua", "Santarém", "Marabá", | |
"Castanhal", "Parauapebas", "Abaetetuba", |
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
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
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
<template> | |
<div> | |
<v-card width="100%"> | |
<v-card-title> | |
<h1>{{name}}</h1> | |
<v-spacer></v-spacer> | |
<v-text-field | |
append-icon="search" | |
label="Pesquisar" |
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
const prefix = process.env.PREFIX | |
const nodeEnv = process.env.NODE_ENV | |
let logCounter = 0 | |
let errorCounter = 0 | |
let fatalCounter = 0 | |
let warnCounter = 0 | |
export const vLogger = { | |
install (Vue, options) { |
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
export const listen = (__statics) => { | |
const app = express() | |
app.use(bodyParser.json({ limit: '250mb' })); | |
app.use(bodyParser.urlencoded({ limit: '250mb', extended: true })); | |
app.use(cors()) | |
app.use(express.static(path.join(__statics, 'videos'))) | |
app.post('/api/download', async (req, res) => { | |
try { |
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 { app, BrowserWindow, ipcMain, autoUpdater, dialog } from 'electron' | |
import server from './server/server.js' | |
import fs from 'fs' | |
/** | |
* Set `__statics` path to static files in production; | |
* The reason we are setting it here is that the path needs to be evaluated at runtime | |
*/ | |
if (process.env.PROD) { | |
global.__statics = require('path').join(__dirname, 'statics').replace(/\\/g, '\\\\') | |
} |
OlderNewer