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
| window.addEventListener("DOMContentLoaded", function () { | |
| console.log("APARECE"); | |
| })} |
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
| const SwaggerClient = require('swagger-client'); | |
| async function main() { | |
| const requestInterceptor = (request) => { | |
| request.headers["X-API-KEY"] = 'MY-X-API-KEY'; | |
| request.headers["Content-Type"] = 'application/json'; | |
| return request; | |
| }; | |
| const client = await SwaggerClient({ url: 'https://legend.lnbits.com/openapi.json', requestInterceptor }) |
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
| pragma solidity ^0.4.11; | |
| // import './IERC20.sol'; | |
| // contract FuncToken is IERC20 { | |
| contract FuncToken { | |
| uint public constant _totalSupply = 1000000; | |
| string public constant symbol = "FUNC"; |
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 |
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
| 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
| ## 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
| 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
| <!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
| // 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>; |
NewerOlder