Skip to content

Instantly share code, notes, and snippets.

View zYeoman's full-sized avatar
👓
Coding

Yongwen Zhuang zYeoman

👓
Coding
View GitHub Profile
@zYeoman
zYeoman / android.patch
Created March 8, 2019 09:01
Patch for cordova android url
--- platforms/android/build.gradle 2019-03-08 15:01:51.802772195 +0800
+++ platforms-old/android/build.gradle 2019-03-07 18:25:48.656770908 +0800
@@ -21,7 +21,7 @@
buildscript {
repositories {
maven {
- url "https://maven.google.com"
+ url "https://dl.google.com/dl/android/maven2/"
}
jcenter()
@zYeoman
zYeoman / c++.md
Last active August 19, 2020 16:03
snips
@zYeoman
zYeoman / index.html
Created October 18, 2022 09:56
SVG Pan, Zoom and Rotate
<svg id="svg" class="svg" viewBox="0 0 300 300" preserveAspectRatio="xMidYMid meet">
<g id="viewport">
<rect class="svg-background" x="0" y="0" width="300" height="300" />
<g transform="translate(86.08, 11.6)">
<path fill="#010101" d="M117.933,113.177c-0.086,0.211-0.172,0.392-0.246,0.528l0.023,0.074l0.074-0.02
c0.078-0.146,0.16-0.325,0.25-0.54l-0.031-0.07L117.933,113.177z M118.523,111.541c-0.098,0.293-0.191,0.571-0.281,0.825
l0.035,0.066l0.066-0.031c0.094-0.254,0.188-0.532,0.282-0.825l-0.036-0.07L118.523,111.541z M120.438,104.842
c-0.071,0.258-0.146,0.544-0.224,0.841l0.039,0.066l0.067-0.039c0.078-0.297,0.152-0.579,0.219-0.841l-0.039-0.066L120.438,104.842z
M119.04,109.878c-0.086,0.285-0.168,0.563-0.254,0.833l0.035,0.07l0.07-0.039c0.082-0.27,0.168-0.547,0.254-0.833l-0.039-0.066
L119.04,109.878z M119.987,106.524c-0.074,0.273-0.148,0.556-0.231,0.841l0.04,0.066l0.066-0.039
@zYeoman
zYeoman / habitica.js
Created July 23, 2024 15:28
google app sync habitica
const HABITICA_TOKEN = "token";
const HABITICA_ID = "id";
function syncToHabbitica() {
const habTaskURL = "https://habitica.com/api/v3/tasks/";
const today = new Date();
const agenda = CalendarApp.getDefaultCalendar()
// const agenda = CalendarApp.getCalendarsByName(CALENDAR_NAME)[0];
// const events = agenda.getEventsForDay(today);