-
@joevo2/komas
-
@ccheever/vector-icon-showcase
-
@cchever/gistexp
-
@playground/rnplay
-
@mastermo/instagram-stories
This file contains 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
// Chrome dev tools | |
let list | |
list = document.querySelectorAll("body > div.RnEpo.Yx5HN > div > div.isgrP > ul > div > li > div > div.t2ksc > div.RR-M-.SAvC5 > a") | |
let usernames = [] | |
for (var value of list.values()) { | |
usernames.push(value.getAttribute("href")) | |
} | |
// Store as global variable |
This file contains 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
{ | |
a: 1, | |
...(true && { b: 2 }), | |
} |
This file contains 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 { View, StyleSheet, ScrollView, Text } from "react-native"; | |
export default class HomeScreen extends React.Component { | |
static navigationOptions = { | |
title: "Spending" | |
}; | |
render() { | |
return ( |
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://unpkg.com/react@16.1.0/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/react-dom@16.1.0/umd/react-dom.production.min.js"></script> |
This file contains 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
validateCoupon = async (id) => { | |
let _this = this; | |
var Comments = Parse.Object.extend("Comments"); | |
var query = new Parse.Query(Comments); | |
query.equalTo("objectId", id); | |
await query.first({ | |
success: function (results) { | |
results.save(null, { | |
success: function (results) { | |
// Now let's update it with some new data. In this case, only cheatMode and score |
This file contains 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 { | |
View, | |
Text, | |
TouchableOpacity | |
} from 'react-native'; | |
import { ButtonGroup, CheckBox } from 'react-native-elements' | |
import FloatLabelTextInput from '../../components/react-native-floating-label-text-input'; |
This file contains 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 { | |
View, | |
Text, | |
} from 'react-native'; | |
import { ButtonGroup } from 'react-native-elements' | |
import FloatLabelTextInput from '../../components/react-native-floating-label-text-input'; | |
import { Global } from './Styles'; |
This file contains 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 Exponent from 'exponent'; | |
import React from 'react'; | |
import { | |
AppRegistry, | |
Platform, | |
StatusBar, | |
StyleSheet, | |
View, | |
} from 'react-native'; | |
import { |
This file contains 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
setData = data => { | |
console.log('setData', data) | |
this.setState({ test: data }) | |
} | |
getData = () => { | |
const setData = this.setData | |
Axios | |
.get('...') |