Yet another LESS CSS animated Clock.
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 } from 'react'; | |
import { | |
AppRegistry, | |
Text, | |
View, | |
Button, | |
StyleSheet, | |
Image, | |
Touchable, | |
TouchableHighlight, |
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
db.accounts.findById(id, function(error, user) { | |
//....AAAA | |
db.accounts.useUsertoDo(user, function(error, something) { | |
// use something to do something | |
}); | |
}); | |
//------------------------------ | |
var promise1 = db.accounts.findById(id); |
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 apif1 = () => new Promise((resolve, reject) => { | |
setTimeout(resolve, 1000, "one"); | |
}); | |
var apif2 = () => new Promise((resolve, reject) => { | |
setTimeout(resolve, 2000, "two"); | |
}); | |
var apif3 = (values) => new Promise((resolve, reject) => { | |
var flattened = values.reduce((acc, val) => acc.concat(val)); | |
setTimeout(resolve, 3000, flattened); |
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
fetch(api.SEARCH_THE_ACCOUNT_ENDPOINT + "username=" + this.state.email, { | |
method: 'GET', | |
headers: { | |
'access_token': access_token | |
}, | |
// body: formBody | |
}).then((response) => { | |
if (response.status >= 200 && response.status < 300) { | |
return response.json(); | |
} else { |
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 } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { addNavigationHelpers } from 'react-navigation'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
// import DeviceInfo from 'react-native-device-info'; | |
import Orientation from 'react-native-orientation'; | |
import { ActionCreators } from '../redux/actions'; | |
import AppNavigation from './AppNavigation'; | |
import InitializingScreen from './InitializingScreen'; |
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
public float totalChange = 0; | |
public float lastAzimuth = -1000; | |
public int r_count = 0; | |
private void FixedUpdate() | |
{ | |
if (joycons.Count > 0) | |
{ | |
Joycon j = joycons[jc_ind]; |
Following the instructions from https://golang.org/doc/install
- Download https://golang.org/doc/install?download=go1.13.3.darwin-amd64.pkg
- Run installer
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
OlderNewer