Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://fb.me/react-with-addons-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
</head>
<body>
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { HeroesService } from '../services/heroes.service';
@Component({
selector: 'app-heroe',
templateUrl: './heroe.component.html'
})
export class HeroeComponent {
heroe: any = {
@i-oliva
i-oliva / log.txt
Created June 7, 2018 16:31
this is the log I get whenever I open heroe.component.ts
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.014 000.014: --- NVIM STARTING ---
000.187 000.173: locale set
001.880 001.693: inits 1
001.888 000.008: window checked
002.014 000.126: parsing arguments
002.016 000.002: expanding arguments
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
Enabled minor modes: Anzu Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Auto-Highlight-Symbol Bug-Reference-Prog
Clean-Aindent Column-Number Company Cursor-Sensor Diff-Auto-Refine Editorconfig
Electric-Indent Eval-Sexp-Fu-Flash Evil Evil-Escape Evil-Local Eyebrowse
File-Name-Shadow Flycheck Flycheck-Pos-Tip Font-Lock Git-Gutter+ Global-Anzu
Global-Auto-Revert Global-Eldoc Global-Flycheck Global-Font-Lock
Global-Git-Commit Global-Git-Gutter+ Global-Hl-Line Global-Page-Break-Lines
Global-Spacemacs-Leader-Override Global-Undo-Tree Global-Vi-Tilde-Fringe
Goto-Address-Prog Helm Helm-Descbinds Helm-Flx Highlight-Numbers
Highlight-Parentheses Hl-Todo Hs Ido-Vertical Js2-Imenu-Extras Line-Number Lsp
Debugger entered--Lisp error: (wrong-type-argument lsp--workspace nil)
signal(wrong-type-argument (lsp--workspace nil))
company-lsp(prefix)
apply(company-lsp prefix)
company-call-backend-raw(prefix)
apply(company-call-backend-raw prefix)
company--force-sync(company-call-backend-raw (prefix) company-lsp)
company-call-backend(prefix)
company--begin-new()
company--perform()
@i-oliva
i-oliva / app.js
Created July 9, 2018 15:10
js assignment error
/*Non finished*/
/*
function markdownParser(n){
let occurencesOf# = n.split('#'.length-1);
// Select the word that is different from # and ' '
let differentWord;
switch(occurences){
@i-oliva
i-oliva / funcs.el
Created July 9, 2018 16:50
lsp funcs
;;; packages.el --- Language Server Protocol functions File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Fangrui Song <i@maskray.me>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; packages.el --- Language Server Protocol packages File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Fangrui Song <i@maskray.me>
;; URL: https://github.com/syl20bnr/spacemacs
;;;;; packages.el --- Language Server Protocol packages File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
@i-oliva
i-oliva / solution.js
Created July 9, 2018 17:39
Solution to the markup to HTML exercise
function markupExercise(n) {
// Count the number of # occurrences in the file
let occurrences = n.split('#').length - 1;
// Get the different word
let arrayOfN = n.split(' ');
let differentWord = '';
for (let element of arrayOfN) {
if (element !== '#') {