I hereby claim:
- I am brychanodlum on github.
- I am brychan (https://keybase.io/brychan) on keybase.
- I have a public key ASCkNeY2Od3UQ3Bgp-iQB6dFSXwhNT6CNO7AxklBjZDDAgo
To claim this, I am signing this object:
extension UIScrollView { | |
func scrollToCenter(_ targetView: UIView) { | |
let viewportHeight = self.frame.height - self.contentInset.bottom | |
let posInViewport = targetView.frame.origin.y + (targetView.frame.height / 2) - self.contentOffset.y | |
let posDelta = (viewportHeight / 2) - posInViewport | |
var newYOffset = self.contentOffset.y - posDelta | |
if newYOffset < 0 { | |
newYOffset = 0 | |
} else if newYOffset > self.subviews[0].frame.height - viewportHeight { |
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest |
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest |
FROM node:10-alpine AS base | |
WORKDIR /app | |
# Add python... because bcrypt... | |
RUN apk --no-cache add --virtual native-deps \ | |
g++ gcc libgcc libstdc++ linux-headers autoconf automake make nasm python git && \ | |
npm install --quiet node-gyp -g | |
FROM base AS build |
import React, { useEffect } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { withRouter } from 'react-router-dom'; | |
import { setPseudoRoute } from '../utils/Utils'; | |
function withPseudoRoute(Component, deeplink) { | |
return withRouter(props => { | |
useEffect(() => { | |
setPseudoRoute(deeplink); |
[ | |
{ | |
"name": "Algeria", | |
"code": "DZ", | |
"storefrontId": 143563 | |
}, | |
{ | |
"name": "Angola", | |
"code": "AO", | |
"storefrontId": 143564 |
I hereby claim:
To claim this, I am signing this object:
const axios = require('axios'); | |
const fetchdata = async function(event, context) { | |
try { | |
const res = await axios({ | |
method: 'post', | |
url: `https://api.genius.com/search?q=test`, | |
headers: { | |
'Authorization': 'Bearer TOKEN' | |
}, |
document.addEventListener('musickitloaded', function() { | |
// MusicKit global is now defined | |
MusicKit.configure({ | |
developerToken: '**JWT_TOKEN**', | |
app: { | |
name: 'Apple Musish', | |
build: '0.01a' | |
} | |
}); |
const speedTest = require('speedtest-net'); | |
const mysql = require('mysql'); | |
const cron = require('node-cron'); | |
const ping = require('ping'); | |
const dns = require('dns'); | |
var pool = mysql.createPool({ | |
host: 'localhost', | |
user: 'USER', | |
password: 'PASSWORD', |