Skip to content

Instantly share code, notes, and snippets.

View wendeehsu's full-sized avatar
🇹🇼
Fighting 💨

wendeehsu

🇹🇼
Fighting 💨
View GitHub Profile
.dropdown .dropbtn {
cursor: pointer;
color: inherit;
font-size: 1.125rem;
border: none;
outline: none;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
}
<script>
function showDropdown(name) {
console.log(name);
const dropdowns = document.querySelectorAll(`[id^="tag-content"]`);
for (var i = 0; i < dropdowns.length; i++) {
dropdowns[i].classList.remove('show');
}
document.getElementById("tag-content-"+name).classList.toggle("show");
}
{{!-- {{#if @site.navigation}}
{{navigation}}
{{/if}}
{{#if @site.secondary_navigation}}
<li class="more">
<span>
<a href="javascript:void(0);" class="js-open-secondary-menu">
{{t "More"}}
<span class="icon-chevron-down" aria-hidden="true"></span>
</a>

開頭

  • 用三句話簡述我想做什麼、為什麼想申請這個 Program

My pursuit of xxx 研究所 at the xxx 大學 is motivated by my goal of xxx (我想做什麼?). This aspiration roots back to my experience which taught me xxx (為什麼想做這個?).

事件/能力段

  • 完整描述自己有什麼能力
  • 遇到了什麼挫折發現自己會的遠遠不夠

過去三年的實習經驗中,我學會了 xxx 技能 (我會什麼?),然而卻發現產品賣不好 (遇到什麼挫折?),歸咎原因,我覺得是因為 xxx 沒有做好、所以想學更多 (帶出想念這個領域的動機)

function batchUpdate() {
// https://docs.google.com/spreadsheets/d/{this_is_Sheet_id}/edit#gid=0
let originalSheetId = "18vPr_Kghkv16gFp0KBptzY3yu8J4fp6b9NobppeHMWY";
let backupSheetId = "1SSHx4RiytJoV3X6EgtSb0bNow1YIt8txfrllEIZF9Pc";
let sheet = SpreadsheetApp.openById(originalSheetId).getSheetByName("transaction");
let rowNum = sheet.getLastRow();
// get data in certain range from original sheet
let response = Sheets.Spreadsheets.Values.batchGet(
originalSheetId, {ranges: ['transaction!A1:N' + rowNum]});
function Backup() {
let sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("transaction");
const backupSheetUrl = 'https://docs.google.com/spreadsheets/d/1SSHx4RiytJoV3X6EgtSb0bNow1YIt8txfrllEIZF9Pc/edit';
// `Sheet2` is where we want to paste our Original Data
let backupSheet = SpreadsheetApp.openByUrl(backupSheetUrl).getSheetByName("Sheet2");
let values = sheet.getDataRange().getValues();
// Clear data but keep format in backupSheet
// you can use `backupSheet.clear()` to clear both data and format
function getReviews(locationId = 'YOUR_LOCATION_ID') {
var service = getService();
if (service.hasAccess()) {
var url = 'https://mybusiness.googleapis.com/v4/accounts/'+ accountId +'/locations/'+locationId+'/reviews';
Logger.log(url);
var response = UrlFetchApp.fetch(url, {
headers: {
Authorization: 'Bearer ' + service.getAccessToken()
}
});
const accountId = "YOUR_ACCOUNT_ID";
function getLocation() {
var service = getService();
if (service.hasAccess()) {
var url = 'https://mybusinessbusinessinformation.googleapis.com/v1/accounts/'+ accountId +'/locations?readMask=name,title';
var response = UrlFetchApp.fetch(url, {
headers: {
Authorization: 'Bearer ' + service.getAccessToken()
}
// refer to: https://github.com/googleworkspace/apps-script-oauth2/blob/master/samples/Google.gs
var CLIENT_ID = 'YOUR_CLIENT_ID';
var CLIENT_SECRET = 'YOUR_CLIENT_SECRET';
/**
* Authorizes and makes a request to the Google Drive API.
*/
function run() {
var service = getService();
import Icon from './icon/index';
export default function IconList() {
return (
<div>
<Icon.Filter style={{ color: 'hotpink' }} />
<Icon.Folder style={{ color: 'orange' }} />
<Icon.Grade style={{ color: 'mediumpurple' }} />
</div>
);