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 fs = require('fs'); | |
const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
// Función simulada para obtener datos (reemplazar con tu lógica de base de datos) | |
async function obtenerDatos(offset, limit) { | |
// Aquí iría tu lógica para obtener los datos | |
// Por ejemplo: SELECT * FROM tu_tabla LIMIT ${limit} OFFSET ${offset} | |
return []; // Retorna los datos | |
} |
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
###### development tools | |
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk | |
### Python packages | |
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib | |
### pip packages | |
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython |
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 express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var session = require('express-session'); | |
var flash = require('express-flash'); | |
var handlebars = require('express-handlebars') | |
var app = express(); | |
var sessionStore = new session.MemoryStore; | |
// View Engines |
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
// expressJS route | |
router.get('/search', function(req, res, next) { | |
Product.find({ $text: { $search: req.param('title') } } , function(err, docs){ | |
res.render('shop/search', {products: docs} ); | |
}); | |
}); |
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
/* Pricing Tables */ | |
.pricing-table { | |
border: solid 1px #DDDDDD; | |
margin-left: 0; | |
margin-bottom: 1.25rem; } | |
.pricing-table * { | |
list-style: none; | |
line-height: 1; } | |
.pricing-table .title { | |
background-color: #333333; |
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
/* iPhone 6 landscape */ | |
@media only screen and (min-device-width: 375px) | |
and (max-device-width: 667px) | |
and (orientation: landscape) | |
and (-webkit-min-device-pixel-ratio: 2) | |
{ } | |
/* iPhone 6 portrait */ | |
@media only screen | |
and (min-device-width: 375px) |
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
resources :blogs do | |
resources :articles | |
end |
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"; | |
var express = require("express"), | |
exphbs = require('express-handlebars'), | |
request = require("request"), | |
cheerio = require("cheerio"), | |
app = express(), | |
port = process.env.PORT || 3002; | |
//array | |
var urlsArray = ['http://www.lanacion.com.co/', 'http://www.diariodelhuila.com/']; |
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
# UdacityDownload.py | |
# Python 2.7.6 | |
""" | |
Python script to download course content from udacity courses | |
- Creates folders as per course names | |
- Downloads all the zip files | |
- Extract content from zip file | |
- Finally delete the zip file | |
Multiple course content can be downloaded from list |
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
<p id="notice"><%= notice %></p> | |
<paper-toolbar> | |
<paper-icon-button icon="menu" on-tap="menuAction"></paper-icon-button> | |
<div class="title">Listing Ligas</div> | |
<paper-icon-button icon="more-vert" on-tap="moreAction"></paper-icon-button> | |
</paper-toolbar> | |
<table> | |
<thead> | |
<tr> |
NewerOlder