Skip to content

Instantly share code, notes, and snippets.

Working from home

Yiyi Wang shd101wyy

Working from home
  • Mars, Solar system, Universe
View GitHub Profile
shd101wyy / subscription.js
Last active Oct 1, 2016
subscription test
View subscription.js
const x = 12
const y = 14
return {
title: "Hi",
message: "Yoo"
shd101wyy / service.js
Last active Mar 1, 2017
trigger and action model script
View service.js
name: bilibili,
triggers: {
subscribe_user: {
title: "up主最新视频更新",
config: {
id: {
type: "string",
title: "up主数字id",
description: "例如**122879**",
View test.js
console.log("Hello JavaScript and World")


  • markdown: compile_on_save option. Convert to file automatically.
  • Use plantuml-encoder to display images rather than converting svg to png myself.
shd101wyy / fixsub.js
Last active Jun 30, 2018
My moni script
View fixsub.js
(function(args={}) { // event = {url, cheerio, $get}
return new Promise((resolve, reject)=> {
const name = args['name']
const url = encodeURI(`${name}`)
headers: {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
}, function(error, response, body) {
shd101wyy / app.ts
Last active Aug 16, 2017
Vue template
View app.ts
import Vue from "vue"
import Component from 'vue-class-component'
template: `<div>
This is test {{message}}
<p v-for="l in list">

Export Calendar

  1. Visit:, click the gear then click Settings.

Screen Shot 2017-11-22 at 2.21.43 PM

  1. Choose Calendars section, then click Export calendars to export.

Screen Shot 2017-11-22 at 2.21.15 PM


Calendar Notification

  1. Visit:, click the arrow on the right side of RV Shared Calendar then choose Calendar settings.

Screen Shot 2017-11-24 at 10.27.57 AM

  1. Choose Edit notifications section, then you can enable the nofication that you like, like Daily agenda. Click Save to save the changes.

Screen Shot 2017-11-24 at 10.28.08 AM

View markdown-tree.js
const fs = require('fs'),
path = require('path')
function spaceAhead(n) {
let outputString = ''
for (let i = 0; i < n; i++) {
outputString += ' '
return outputString