A Pen by Diego Fernando Achury on CodePen.
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
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 ="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) %> |
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> |
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
"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
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
/* 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
/* 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
// 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} ); | |
}); | |
}); |
OlderNewer