Skip to content

Instantly share code, notes, and snippets.

@vsakaria
vsakaria / IqDbp.markdown
Created July 30, 2014 09:14
A Pen by Vishal Sakaria.
@vsakaria
vsakaria / gist:ecab1c880c8552fbf1e6
Last active August 29, 2015 14:08
Date Drop Down menu.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
https://babs-ui.qa1.elab.lastminute.com/babs-ui/responsive/paymentPage/216CA5140A0E0154017F43CC3AB97EE0?id=216CA5140A0E0154017F43CC3AB97EE0&handback_url=/?skin=engb.lastminute.com&configId=S72722479
'''
Spider for IMDb
- Retrieve most popular movies & TV series with rating of 8.0 and above
- Crawl next pages recursively
'''
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import Selector
{
"options":[
{
"selected":true,
"type":"PRICE",
"name":"Precio",
"orders":[
{
"name":"ASC",
"type":"ASC",
{
"disallowEmptyBlocks": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [
","
@vsakaria
vsakaria / BASH_PROFILE
Last active September 16, 2015 13:54
export M2_HOME=/usr/local/apache-maven-3.3.1
export M2=$M2_HOME/bin
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export CLOSURE_COMPILER_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-compiler"
export CLOSURE_LIBRARY_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-library"
export PATH=$M2_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/usr/local/apache-maven-3.3.1/bin:$PATH

HTML5 Markup Template - Basic

A very basic starter template with fundamental HTML5 markup -- only the basics.

Based on HTML5 Bones | http://html5bones.com

@vsakaria
vsakaria / _media32.scss
Created September 30, 2015 22:09
A Sass 3.2 mixin for dealing with Media Queries
// Here are some variables, then a mixin and then an application of the mixin - this will only compile using Sass 3.2
//variables
$XS: 12.5em; // 200px;
$S: 18.75em; // 300px
$SM: 35em; // 560px
$M: 47.5em; // 760px
$L: 63em; // 1008px
$XL: 110em; // 1760px
$XXL: 180em; // 2880px
var Backbone = require('backbone');
var MapView = require('../../../../../src/apps/products/list/views/mapView');
var productsListChannel = Backbone.Wreqr.radio.channel('productsList');
describe('Map View', function () {
beforeEach(function () {
window.google = {
maps: {}
};