Skip to content

Instantly share code, notes, and snippets.

View diegoachury's full-sized avatar

Diego Fernando Achury diegoachury

View GitHub Profile
@diegoachury
diegoachury / A-Pen-by-Diego-Fernando-Achury.markdown
Created December 6, 2013 20:22
A Pen by Diego Fernando Achury.
@diegoachury
diegoachury / zsh.md
Created December 16, 2015 19:48 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
<div class ="quiz">
<ol class="questions">
<% @quiz.questions.each do |question| %>
<li>
<%= question.query %>
<ol class="answers">
<% question.answers.each do |answer| %>
<li>
<%= radio_button_tag("answer[#{question.id}]", answer.id) %>
@diegoachury
diegoachury / index.html.erb
Created February 11, 2016 00:16
polymer con RoR
<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>
@diegoachury
diegoachury / UdacityDownload.py
Created February 17, 2016 21:10 — forked from vinovator/UdacityDownload.py
Python program to download course content for multiple Udacity courses neatly arranged within a folder structure
# 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
@diegoachury
diegoachury / Server-express.js
Created April 6, 2016 15:23
servidor express scrap.
"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/'];
resources :blogs do
resources :articles
end
@diegoachury
diegoachury / apple-mq.css
Created June 16, 2016 19:26 — forked from AllThingsSmitty/apple-mq.css
iPhone 6/6 Plus and Apple Watch CSS media queries
/* 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)
/* 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;
@diegoachury
diegoachury / index.js
Last active January 31, 2017 23:23
Buscador fulltext mongodb + express
// 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} );
});
});