This file contains hidden or 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 scraper = (function(){ | |
| var scrape_retailer = function(retailer, product_keyword){ | |
| var urlGet = retailer.endpoint.replace("{{KEYWORD}}",product_keyword), | |
| retailer_products = [], | |
| $dfd = $.Deferred(); | |
| appAPI.request.get(urlGet, | |
| function(response, responseHeaders) | |
| { |
This file contains hidden or 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> | |
| <meta charset=utf-8> | |
| <title>Fluid Width YouTube Videos</title> | |
| <meta name="viewport" content="width=device-width"> | |
| <style> |
This file contains hidden or 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="row contact-container"> | |
| <div class="span6"> | |
| <div class="title"> | |
| <p> | |
| Tu opinión no es importante; es imprescindible. | |
| </p> | |
| <p> | |
| ¡Escribinos a: contacto@hubinternacional.org y ayudamos a ser mucho mejores! | |
| </p> | |
| </div> |
This file contains hidden or 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
| /******************************************************************************************************/ | |
| /************************************** FACEBOOK CONVERSION STUFF **************************************/ | |
| /******************************************************************************************************/ | |
| var asuntos_fb_pixel_id = 6008163913304, | |
| relaciones_fb_pixel_id = 6008163930504, | |
| graduados_fb_pixel_id = 6008164203504, | |
| fb_value = '0.00', | |
| function fb_conv(fb_pixel_id) | |
| { |
This file contains hidden or 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
| CREATE SCHEMA soviax_site; | |
| CREATE TABLE soviax_site.packages ( | |
| id serial PRIMARY KEY, -- Es lo mismo que el autoincrement | |
| name text NOT NULL UNIQUE, | |
| title text NOT NULL, | |
| departure_dates text NOT NULL, | |
| price_desc text NOT NULL, | |
| start_date date NOT NULL, | |
| end_date date NOT NULL, |
This file contains hidden or 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
| function makeid(length) | |
| { | |
| var text = ""; | |
| var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| for(var i=0; i < length; i++) | |
| { | |
| text += possible.charAt(Math.floor(Math.random() * possible.length)); | |
| } |
This file contains hidden or 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 collection_helper = (function () { | |
| var collection = [], | |
| $collection = $(collection), | |
| inCollection = function (item) { | |
| //debugger; | |
| var index = -1, | |
| iterator = 0, | |
| total_iterator = $collection.length; | |
| for (iterator; iterator < total_iterator; iterator++) { |
This file contains hidden or 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
| git diff --diff-filter=D --name-only -z | xargs -0 git rm |
This file contains hidden or 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
| - Create bitbucket repo | |
| - Researching what to do with the face detection and face recognition stuff, investigating opencv or any API. | |
| - Share repo to team mates | |
| - Create local environment | |
| - Initial push | |
| - Clone git repo in team mates computers | |
| - Create heroku app | |
| - Decided we are going to use Sky Biometry API for the face detection and face recognition part | |
| - Decided we are going to use php for the backend and lot of javascript for the frontend |
This file contains hidden or 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
| // Reference: http://www.thecodeship.com/web-development/alternative-to-javascript-evil-setinterval/ | |
| function interval(func, wait, times){ | |
| var interv = function(w, t){ | |
| return function(){ | |
| if(typeof t === "undefined" || t-- > 0){ | |
| setTimeout(interv, w); | |
| try{ | |
| func.call(null); | |
| } |