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 topicsJson from '../dbstore/topics.json'; | |
| const topicData = topicsJson.topics; | |
| let topicNames = []; | |
| for (var i in topicData) { | |
| topicNames.push({ | |
| topicName: topicData[i].topicName, | |
| topicDescription: topicData[i].topicDescription, | |
| topicSummary: topicData[i].topicSummary, | |
| imageurl: topicData[i].imageurl, | |
| topicCategory: topicData[i].topicCategory, |
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
| /* | |
| Purpose:Upload files to cloudinary cdn from nodejs | |
| Tutorial:http://wp.me/p82htC-eX | |
| */ | |
| const express = require('express'); | |
| let app = express(); | |
| const chokidar = require('chokidar'); | |
| const filepath = '/home/saurabh/Pictures/Apps/'; | |
| let watcher = chokidar.watch(filepath, { |
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, PropTypes } from "react"; | |
| import { | |
| AsyncStorage, | |
| Modal, | |
| View, | |
| Text, | |
| TouchableHighlight | |
| } from "react-native"; | |
| import styles from "./styles/ftreScreenStyles"; | |
| export default class FtueScreen extends 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
| sampleTuple = (12, 10, 14, 18, 20, 22, 12) | |
| #print a tuple | |
| print(sampleTuple) | |
| #Output: (12, 10, 14, 18, 20, 22, 12) | |
| #print number of times 12 appears in the tuple | |
| print(sampleTuple.count(12)) | |
| #Output: 2 |
OlderNewer