Skip to content

Instantly share code, notes, and snippets.

View chanakaDe's full-sized avatar
Amor vincit omnia.

Chanu De Silva chanakaDe

Amor vincit omnia.
View GitHub Profile
import React from 'react';
import { Route, Switch, BrowserRouter } from 'react-router-dom';
import AboutUs from '../components/AboutUs';
import ContactUs from '../components/ContactUs';
import Main from '../components/Main';
import Home from '../components/Home';
import Register from '../components/register/index';
import Login from '../components/login';
import NotFound from '../components/NotFound';
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// XHR for Chrome/Firefox/Opera/Safari.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
// XDomainRequest for IE.
xhr = new XDomainRequest();
xhr.open(method, url);
} else {
{{ define "main" }}
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
{{ .Content }}
</article>
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
{{/* Create a variable with that section to use in multiple places. */}}
{{ $section := where .Site.RegularPages "Section" "in" $mainSections }}
{{/* Check to see if the section is defined for ranging through it */}}
{{ $section_count := len $section }}
import {autoinject} from 'aurelia-framework';
import {HttpClient} from "aurelia-fetch-client";
import {Steam} from './steam';
import {BaseI18N} from 'aurelia-i18n';
@autoinject
export class Producers extends BaseI18N {
producers = 'Producers Page!';
steam:Steam;
{
"version": "1.0.0",
"short_name": "GENCODE M24",
"long_name": "GENCODE gene set for Mouse Build 24",
"description": "The gencode gene set is ...",
"track_type": "gene",
"genome": {
"genome_species": "mus_musculus",
"genome_assembly": "GRCm38",
"genome_strain": 0,
[{
"meta_id": 1,
"0": 1,
"species_id": null,
"1": null,
"meta_key": "schema_type",
"2": "schema_type",
"meta_value": "core",
"3": "core"
}, {
[{
"analysis_id": 1,
"0": 1,
"logic_name": "mt_genbank_import",
"1": "mt_genbank_import",
"description": "Mitochondrial gene models imported from <a rel=\"external\" href=\"http:\/\/www.ncbi.nlm.nih.gov\/genbank\/\">Genbank<\/a>.",
"2": "Mitochondrial gene models imported from <a rel=\"external\" href=\"http:\/\/www.ncbi.nlm.nih.gov\/genbank\/\">Genbank<\/a>.",
"display_label": "MT genes (GenBank)",
"3": "MT genes (GenBank)",
"web_data": "{\"caption\" => \"Genes (Comprehensive set from GENCODE 26)\",\"colour_key\" => \"[biotype]\",\"default\" => {\"MultiBottom\" => \"collapsed_label\",\"MultiTop\" => \"gene_label\",\"alignsliceviewbottom\" => \"as_collapsed_label\",\"contigviewbottom\" => \"transcript_label\",\"contigviewtop\" => \"gene_label\",\"cytoview\" => \"gene_label\"},\"key\" => \"ensembl\",\"label_key\" => \"[biotype]\",\"multi_name\" => \"GENCODE 26 Comprehensive gene set\",\"name\" => \"Comprehensive Gene Annotations from GENCODE 26\"}",
{
"analysis_id": 1,
"0": 1,
"logic_name": "mt_genbank_import",
"1": "mt_genbank_import",
"description": "Mitochondrial gene models imported from <a rel=\"external\" href=\"http:\/\/www.ncbi.nlm.nih.gov\/genbank\/\">Genbank<\/a>.",
"2": "Mitochondrial gene models imported from <a rel=\"external\" href=\"http:\/\/www.ncbi.nlm.nih.gov\/genbank\/\">Genbank<\/a>.",
"display_label": "MT genes (GenBank)",
"3": "MT genes (GenBank)",
"web_data": "{\"caption\" => \"Genes (Comprehensive set from GENCODE 26)\",\"colour_key\" => \"[biotype]\",\"default\" => {\"MultiBottom\" => \"collapsed_label\",\"MultiTop\" => \"gene_label\",\"alignsliceviewbottom\" => \"as_collapsed_label\",\"contigviewbottom\" => \"transcript_label\",\"contigviewtop\" => \"gene_label\",\"cytoview\" => \"gene_label\"},\"key\" => \"ensembl\",\"label_key\" => \"[biotype]\",\"multi_name\" => \"GENCODE 26 Comprehensive gene set\",\"name\" => \"Comprehensive Gene Annotations from GENCODE 26\"}",
<template>
<require from="bootstrap/css/bootstrap.css"></require>
<require from="styles/app.css"></require>
<require from='menu'></require>
<menu class="menu-alignment"></menu>
<div class="container content-alignment">
<h3>Add New User</h3>
<hr>
<div class="col-md-5 col-xs-12">
<form role="form" submit.delegate="signup()">
doctype html
html(lang='en')
head
meta(charset='UTF-8')
title Sample Invoice
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css')
style.
.invoice-title h2, .invoice-title h3 {
display: inline-block;
}