Skip to content

Instantly share code, notes, and snippets.

View xipengyang's full-sized avatar
🏠
Working from home

David xipengyang

🏠
Working from home
View GitHub Profile
@xipengyang
xipengyang / setup.sh
Last active September 2, 2022 03:28 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@xipengyang
xipengyang / initialSetup.sh
Last active December 12, 2021 09:28
Setup on WSL2
#!/bin/bash
# EXECUTE
# sudo chmod +x initialSetup.sh
# ./initialSetup.sh
function linuxSetup() {
# Make sure in user's root directory
echo "${GREEN}Changing to user's root directory...${NC}"
cd ~/
@xipengyang
xipengyang / gist:9acf7b1bdfc15c602de0
Created February 17, 2015 06:06
Appliance Dropdown
var container = A.one("#applianceInformationInputs");
// Model object
var APPLIANCES = {
/**
* All appliances
*/
allApp: ["Hot water cylinder", "Hot water continuous flow",
"Central heating", "Pool/Spa heating", "Hob", "Flame effect fire",
"Space heating", "Bayonet", "Other"],