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
{ | |
"editor.minimap.enabled": false, | |
"editor.fontSize": 13, | |
"git.enableSmartCommit": true, | |
"emmet.triggerExpansionOnTab": true, | |
"editor.renderIndentGuides": true, | |
"editor.tabSize": 2, | |
"editor.formatOnSave": true, | |
"beautify.language": { | |
"js": { |
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-native' | |
var { | |
Image, | |
Animated, | |
View | |
} = React | |
module.exports = React.createClass({ | |
getInitialState() { |
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
// Copyright © 2017 Kalpesh Talkar. All rights reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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 ratio from './ratio'; | |
import colors from './colors'; | |
// FontWeight - Bold | |
const bold = { fontWeight: 'bold' }; | |
// border bottom - 1, color - lightGray | |
const borderBottomLightGray = { borderBottomWidth: 1, borderColor: colors.lightGray }; | |
// fontSize | |
const size10 = { fontSize: ratio.fontScale(10) }; | |
const size11 = { fontSize: ratio.fontScale(11) }; | |
const size12 = { fontSize: ratio.fontScale(12) }; |
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
// Padding - 15 | |
const padding15 = { padding: 15 }; | |
const paddingTop15 = { padding: 15 }; | |
const paddingRight15 = { paddingRight: 15 }; | |
const paddingBottom15 = { paddingBottom: 15 }; | |
const paddingLeft15 = { paddingLeft: 15 }; | |
const paddingVeritacal15 = { paddingVertical: 15 }; | |
const paddingHorizontal15 = { paddingHorizontal: 15 }; | |
// Margin - 15 | |
const margin15 = { margin: 15 }; |
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
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' | |
apply plugin: "com.android.application" | |
apply plugin: 'io.fabric' | |
import com.android.build.OutputFile | |
project.ext.react = [ | |
entryFile: "index.js", | |
enableHermes: true |
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 UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillShowNotification, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> |
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
#https://github.com/sgl0v/TMDB/blob/master/TMDB/Sources/Screens/Utils/UITableView%2BCommon.swift | |
import UIKit | |
protocol NibProvidable { | |
static var nibName: String { get } | |
static var nib: UINib { get } | |
} | |
extension NibProvidable { | |
static var nibName: String { |
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
private static func createUserEventData(user:SKUser, eventType:SKEventType, sticker:Sticker?) { | |
// server endpoint | |
let endpoint = "https://app.stickerkit.io/userEvent/v1/\(user.projectID)" | |
guard let endpointUrl = URL(string: endpoint) else { | |
return nil | |
} | |
//Make JSON to send to send to server |
OlderNewer