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
| env: | |
| matrix: | |
| - GOPATH=$TRAVIS_BUILD_DIR/gosrc | |
| global: | |
| - secure: XXXXXX | |
| - secure: XXXXXX | |
| install: | |
| - mkdir -p "$TRAVIS_BUILD_DIR/gosrc" | |
| - mkdir -p "$TRAVIS_BUILD_DIR/static" | |
| - curl -s https://www.parse.com/downloads/cloud_code/installer.sh | sudo /bin/bash |
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
| { | |
| "applications": { | |
| "_default": { | |
| "link": "sheki" | |
| }, | |
| "sheki": { | |
| "applicationId": "{{.AppID}}", | |
| "masterKey": "{{.MasterKey}}" | |
| } | |
| }, |
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
| - | |
| + -- cloud | |
| + -- config # contains your keys | |
| + -- public # contains the static files |
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
| package main | |
| import ( | |
| "os" | |
| "text/template" | |
| ) | |
| const parseConfig = ` | |
| { | |
| "applications": { |
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
| #!/bin/bash -e | |
| $GOPATH/bin/hugo --theme=purehugo # generate hugo site. | |
| PARSE_CONFIG_DIR="parse_app/config" | |
| mkdir -p "$PARSE_CONFIG_DIR" # git does not allow empty dirs to be checked in. | |
| cp -rf public parse_app/public # copy generated website to parse_app location | |
| go run scripts/gen_travis_parse_keys.go > "$PARSE_CONFIG_DIR/global.json" #gen keys. | |
| cd parse_app | |
| parse deploy #deploy to parse |
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 cacheKey string | |
| if session.IndexCaching { | |
| cacheKey = c.FullName + "\x00" + keyInfo.name | |
| if session.cluster().HasCachedIndex(cacheKey) { | |
| return nil | |
| } | |
| } | |
| #suggested | |
| if !session.disableCaching { |
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
| int mode(int[] array) int { | |
| int mode = -1; | |
| int maxCount = 0; | |
| for (int i =0 ; i < array.length; i++) { | |
| int count = 0; | |
| for (int j=i; j < array.length; j++) { | |
| if array[i] == array[j] { | |
| count++ | |
| } | |
| } |
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 strict'; | |
| var React = require('react-native'); | |
| var ParseReact = require('parse-react'); | |
| Parse.initialize('O23lje4UAXbWj91T1y3qAMLAMIHx29rDkU2aB9z6', 'cFeJ1DQbXaSbtov0Fwc4TbTlJnfQiikfGwE19S0e'); | |
| var { | |
| Image, | |
| ListView, | |
| StyleSheet, |
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
| 499706865 |
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 strict'; | |
| var React = require('react-native'); | |
| var ProfileView = require('./ProfileView'); | |
| var { | |
| StyleSheet, | |
| View, | |
| } = React; |