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
| Route::get('prueba', function() { | |
| /* call */ | |
| $values = array( | |
| 'orderBy' => 'name', | |
| 'orderByDirection' => 'asc', | |
| 'search' => ''); | |
| $gallery = busqueda($values); | |
| /* presentation */ | |
| echo "<pre>"; |
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
| 'use strict' | |
| var request = require('request') | |
| var cheerio = require('cheerio') | |
| function fetch(day, month, lang, events) { | |
| return new Promise(function(resolve) { | |
| var events = [] | |
| var metadata = [] | |
| request(`https://${lang}.wikipedia.org/wiki/${day}_de_${month}`, function (error, response, html) { |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "font_size": 14, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "save_on_focus_lost": true, |
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
| // PROBLEMA. Bind error. No reconoce this.products de la linea 15. | |
| import { Component } from '@angular/core'; | |
| import ApiWrapperService from './lib/apiWrapper.service'; | |
| import { Product } from './entitys/product' | |
| export class AppComponent { | |
| products: Array<Product>; |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <script> | |
| debugger; | |
| let dog = 'Snickers'; |
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 path = require('path'); | |
| var chalk = require('chalk'); | |
| var Blueprint = require('ember-cli/lib/models/blueprint'); | |
| var dynamicPathParser = require('../../utilities/dynamic-path-parser'); | |
| var findParentModule = require('../../utilities/find-parent-module').default; | |
| var getFiles = Blueprint.prototype.files; | |
| var stringUtils = require('ember-cli-string-utils'); | |
| var astUtils = require('../../utilities/ast-utils'); | |
| var NodeHost = require('@angular-cli/ast-tools').NodeHost; | |
| module.exports = { |
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
| ## Pasos seguidos para customizar el addon llamado angular-cli-env para que use blueprints | |
| (hacer uso del "hook" blueprintsPath, extender el objeto de configuracion del comando a EmberGenerateCommand.extend | |
| y copiar las blueprints al sitio elegido) | |
| 0. Tener la última version de angular-cli funcionado. | |
| 1. Descargarse el paquete *npm i angular-cli-env* en ella. | |
| 2. Ir al código del módulo recien descargado: *cd node_modules/angular-cli-env* | |
| 3. En *node_modules/angular-cli-env/index* añadir la propiedad *blueprintsPath* de la siguiente manera: |
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
| import { bootstrap } from 'angular2/platform/browser'; | |
| import { Component, EventEmitter } from 'angular2/core'; | |
| import { NgFor } from 'angular2/common'; | |
| @Component({ | |
| selector: 'sub-component', | |
| inputs: ['items'], | |
| outputs: ['onItemSelected'], | |
| directives: [NgFor], | |
| template: ` |
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
| // FRONTEND (angular2) | |
| // product-form.compontent.html | |
| <input type="file" (change)="fileChangeEvent($event)" placeholder="Upload file..." /> | |
| <button type="button" (click)="upload()">Upload</button> | |
| // product-form.compontent.ts | |
| import { Component, OnInit } from '@angular/core'; | |
| import { Http } from '@angular/http'; | |
| @Component({ |
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
| 0x759AeD42f6C188B640De2a8B1CaA1317bfd8cEF3 |
OlderNewer