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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 * as ui from 'sansux/ui'; | |
//styles | |
import css from '../app/css/styles'; | |
class AccountStatement extends Component { | |
render() { | |
return ( | |
<ScrollView style={css.screen}> |
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
<ion-header class="glass top-header"> | |
<ion-toolbar> | |
<a class="header-link">myTravel</a> | |
<ion-buttons end> | |
<a ion-button class="btn-ico profile spaced" | |
(click)="openNav('profile')"></a> | |
<a ion-button class="btn-ico settings spaced" | |
(click)="openNav('settings')"></a> | |
<a ion-button class="btn-ico help"></a> | |
</ion-buttons> |
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
``` | |
body{ | |
margin: 0; | |
padding: 0; | |
} | |
.header { | |
background-color: #262628; | |
width: 100%; | |
height: 60px; |
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
{"lastUpload":"2018-12-23T11:14:03.613Z","extensionVersion":"v3.2.4"} |
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 React, { Component } from 'react'; | |
import { | |
Dimensions, | |
Image, | |
ListView, | |
PixelRatio, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; |
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
{ | |
"data": [ | |
{ | |
"expression": "^[0-9]{6}-[0-9pPtTfF][0-9]{3}$", | |
"description":"Matches 123456-1234 | 123456-P234 | 123456-f234", | |
"type": "regEx" | |
}, | |
{ | |
"expression": "^[0-9]{1,3}$", | |
"description": "Matches 000..999", |
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
{ | |
"data": [{ | |
"title": "Motor", | |
"image": "/images/motor.png", | |
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque efficitur sagittis vestibulum. Sed sit amet sem vel justo rutrum porta. Duis a laoreet dui, in sagittis nibh. In hac habitasse platea dictumst. Duis molestie diam in quam feugiat euismod. Nullam vestibulum porta condimentum. Phasellus fringilla nisi nec lacus sagittis laoreet. Vivamus ut magna vitae leo finibus viverra. Nullam et posuere neque. Mauris posuere sapien enim, eget placerat mi viverra nec.</p><p>Morbi consequat, tellus sed vehicula fringilla, elit justo vestibulum metus, eget sollicitudin odio augue sit amet velit. Sed eu ligula ut nulla aliquam maximus a eu orci. Integer ut sodales nisl. Sed et <a href='abc'.com>auctor</a> enim. Ut maximus ac arcu non tincidunt. Suspendisse et fermentum libero, in condimentum nisl. Phasellus mi nisl, dapibus in feugiat vestibulum, ultrices eu diam. Integer facilisis eget lorem in pulvinar. Etiam id urna 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
const fs = require('fs'); | |
const jsonServer = require('json-server'); | |
const express = require('express'); | |
const path = require('path'); | |
const enableDestroy = require('server-destroy'); | |
const PORT = process.env.PORT || 3000; | |
const MOCK_JWT = 'eyJhbGciOiJIUzUxMiJ9.eyJGUG0T42kApIiGnA'; | |
// Preprocess db.json |
OlderNewer