Skip to content

Instantly share code, notes, and snippets.

View amazingandyyy's full-sized avatar
🦄

Andy Chen amazingandyyy

🦄
View GitHub Profile
#!/bin/sh
# install code-server service system-wide
export HOME=/root
curl -fsSL https://code-server.dev/install.sh | sh
# add our helper server to redirect to the proper URL for --link
git clone https://github.com/bpmct/coder-cloud-redirect-server
cd coder-cloud-redirect-server
@amazingandyyy
amazingandyyy / git-diff-in-gh-actions.yaml
Created June 21, 2021 04:53
git-diff-in-gh-actions.yaml
- name: diff
id: diff
run: |
if [[ $(git diff --stat) != '' ]]; then
echo "::set-output name=files_changed::true"
fi
- name: Confirm secrets are updated - 🚀
if: steps.diff.outputs.files_changed == 'true'
run: xxxx
{
"branches": [
"master",
{
"name": "(f|b|c)/*",
"channel": "next",
"prerelease": "beta-<%= (/^\\w+-\\d+/.exec(name.substr(2)) || [])[0] %>"
}
],
"plugins": [
curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/meta > github-meta.json
// SPDX-License-Identifier: NO LICENSE
pragma solidity ^0.7.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/EnumerableMap.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./utils/ReentrancyGuard.sol";

blender 2.8 init env for mac os + magic mouse, based view of a previous SketchUp user

Fix text too small

preference -> interface -> display/resolution scale -> 1->1.4

Fix for magic mouse

preference -> input -> mouse/emulate 3 button mouse -> checked, OS-key

import { withTranslation } from 'react-i18next';
const { t } = this.props;
...
{t('testing')}
export default withTranslation()();
{
"Version": "2012-10-17",
"Id": "Policy1596090159004",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::react-app-demoooo/*"
- https://snp.agency/en
- https://web.archive.org/web/20190515000000*/totientlabs.com
- https://we3.jam3.com/designer
import i18n from 'i18next';
<div onClick={()=>i18n.changeLanguage("zh_TW")}>Change</div>