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
| <!-- | |
| This disables app transport security and allows non-HTTPS requests. | |
| Note: it is not recommended to use non-HTTPS requests for sensitive data. A better | |
| approach is to fix the non-secure resources. However, this patch will work in a pinch. | |
| To apply the fix in your Ionic/Cordova app, edit the file located here: | |
| platforms/ios/MyApp/MyApp-Info.plist | |
| And add this XML right before the end of the file inside of the last </dict> entry: |
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
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "[email protected]" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
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
| function Heartbeat(context,width,height) { | |
| var h = this; | |
| h.context = context; | |
| h.width = width; | |
| h.height = height; | |
| h.baseline = Math.round(h.height / 2); | |
| h.context.moveTo(h.x, h.y); | |
| h.context.strokeStyle = "#668CFF"; |
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 mcapi = require('./node_modules/mailchimp-api/mailchimp'); | |
| var usersRef = db.ref('users'); | |
| var mc = new mcapi.Mailchimp('xxxxxxxxxx-api-key-us4'); | |
| usersRef.orderByChild('added_to_mailchimp').equalTo(null).on('child_added',function(snapshot){ | |
| var user = snapshot.val(); | |
| var key = snapshot.key; | |
| if(user && user.email){ | |
| var listId = 'xxxx-list-id-xxxx'; | |
| var name = user.displayName || ''; |
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 mandrill = require('mandrill-api/mandrill'); | |
| var mandrill_client = new mandrill.Mandrill('YOUR MANDARILL KEY'); | |
| var FROM_EMAIL = '[email protected]'; | |
| var FROM_NAME = 'Our Standup'; | |
| var db = require('./database'); | |
| var invitationsRef = db.ref("invitations"); | |
| var teamsRef = db.ref("teams"); | |
| var usersRef = db.ref("users"); |
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 element = document.body; | |
| var colors = ['--blue', | |
| '--indigo', | |
| '--purple', | |
| '--pink', | |
| '--red', | |
| '--orange', | |
| '--yellow', | |
| '--green', |
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
| Project link: https://github.com/graphql-boilerplates/react-fullstack-graphql/tree/master/advanced | |
| yarn add --dev dotenv graphql-cli nodemon npm-run-all prisma | |
| yarn add bcryptjs graphql-yoga jsdom jsonwebtoken page-metadata-parser prisma-binding |
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
| /* | |
| * This file implements a basic drawer control. | |
| */ | |
| import RX = require('reactxp'); | |
| interface MainPanelProps extends RX.CommonStyledProps<RX.Types.ViewStyleRuleSet> { | |
| renderDrawer: () => JSX.Element; | |
| renderContent: () => JSX.Element; | |
| } |
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 from "react"; | |
| import { StyleSheet, StatusBar, View, Dimensions } from "react-native"; | |
| import posed from "react-native-pose"; | |
| const { width, height } = Dimensions.get("screen"); | |
| const GridItem = posed.View({ | |
| RIGHT: { rotate: "45deg" }, | |
| LEFT: { rotate: "-45deg" } | |
| }); | |
| const LINE_WIDTH = 3; |