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
function loginCallback (error, result) { | |
console.log(error, result); | |
} | |
Meteor.loginWithCode = function(phone, code) { | |
Accounts.callLoginMethod({ | |
methodArguments: [{ | |
hascode: true, | |
phone: phone, |
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 & CSS mini-course | |
- Box model | |
- position | |
- floats | |
- shorthands | |
- box sizing | |
- z-index | |
- flex (later) |
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
/* Originally by Chris Bracco with a few cleanups and fixes http://cbracco.me/a-simple-css-tooltip/ */ | |
/* Base styles for the element that has a tooltip */ | |
[tooltip], | |
.tooltip { | |
position: relative; | |
cursor: pointer; | |
} | |
/* Base styles for the entire tooltip */ |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.ad-param, | |
.ad-current-test { | |
.legend-symbol { | |
color: red; | |
} | |
} |
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, { useState } from 'react' | |
import uuid from 'uuid/v4' | |
import loadImage from 'blueimp-load-image' | |
const handleChange = event => { // on file input change | |
let _file = event.target.files[0] | |
if (!_file) return | |
let _fileExt = _file.name.split('.').pop() | |
let _fileName = uuid() + '.' + _fileExt |
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
function App () { | |
const [user, setUser] = useState(null) | |
const [authenticating, setAuthenticating] = useState(true) | |
useEffect(() => { | |
Auth.currentAuthenticatedUser() | |
.then(data => { setUser(data.attributes) }) | |
.catch(error => { console.log(error) }) | |
.finally(() => { setAuthenticating(false) }) | |
}, []) |
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 needle from 'needle' | |
const token = process.env.BEARER_TOKEN | |
const recentEndpointUrl = "https://api.twitter.com/2/tweets/search/recent"; | |
function Page ({ data }) { | |
console.log(data) |