https://stackoverflow.com/questions/8938994/gradlew-behind-a-proxy
https://stackoverflow.com/questions/42296708/how-to-set-proxy-for-android-sdk-manager
name: Deploy To Surge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |
import styled from "styled-components"; | |
interface Props { | |
top?: string; | |
right?: string; | |
left?: string; | |
bottom?: string; | |
all?: string; | |
} |
import PropTypes from 'prop-types'; | |
import styled from "styled-components"; | |
const Margin = styled.div` | |
${props => { | |
const { top, right, left, bottom } = props; | |
return ` | |
margin: ${top} ${right} ${left} ${bottom}; | |
`; |
import React, { useState, useCallback } from 'react'; | |
import { Avatar, Button, Upload } from 'antd'; | |
import { DownloadOutlined, UserOutlined } from '@ant-design/icons'; | |
import { fileToBase64 } from "../../utils"; | |
interface Props { | |
label: string, | |
buttonText: string, | |
action: string, | |
avatarIcon?: React.ReactElement, |
import moment from 'moment'; | |
/** | |
* Validate if a string is valid or not. | |
* | |
* @param {string} stringToTest - The string to validate. | |
* @param {boolean} [allowEmpty=false] - If a empty string should be valid or not. | |
* @param {boolean} allowNull - Returns true if the value is null | |
* @returns {boolean} If the string is valid or not. | |
*/ |
{ | |
"editor.fontSize": 16, | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2, | |
"editor.quickSuggestions": true, | |
"workbench.statusBar.visible": true, | |
"workbench.editor.showTabs": true, | |
"emmet.includeLanguages": { |
alias gits='git status -s' | |
alias gitl='git log --oneline' | |
alias gitc='git commit -m' | |
alias gita='git add --all' | |
alias gitp='git push -u origin master' | |
alias gitd='git diff' | |
alias gitpl='git pull' | |
alias gitpb='git push origin' |
const http = require('http') | |
const server = http.createServer() | |
server.on('request', function (req, res) { | |
res.writeHead(200) | |
req.on('data', function (chunk) { | |
console.log(chunk.toString()) | |
}) | |
res.end() |
const http = require('http') | |
const server = http.createServer() | |
server.on('request', function (req, res) { | |
req.pipe(res) | |
}) | |
server.listen(8000) |