Skip to content

Instantly share code, notes, and snippets.

@ayugioh2003
ayugioh2003 / index.html
Last active July 15, 2020 10:42
General sibling combinator test
<span>This is not red.</span>
<label for="">123</label>
<input>
<span>And here is a span span!</span>
<code>Here is some code.</code>
<span>And here is a red span!</span>
<code>More code...</code>
<span>And this is a red span!</span>
<label for="">123</label>
@ayugioh2003
ayugioh2003 / index.html
Last active July 15, 2020 03:05
test pug and sass
<div id="app">
<header>header</header>
<nav>
<h1>計分</h1>
<div>分數:{{score}}</div>
<div>目前題數:{{ currentStep }}</div>
<div>目前難度:{{ currentType }}</div>
</nav>
<main>
<div v-for="item in questions" :key="item.id" class="box">
@ayugioh2003
ayugioh2003 / index.js
Created November 11, 2016 00:50 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
color c1 = color(255, 0, 0); // 宣告顏色
color c2 = color(0, 127, 0);
color c3 = color(0, 0, 255);
color c4 = color(255, 255, 0);
color c5 = color(255, 0, 255);
color c7 = color(255); // 橡皮擦顏色
color c_pen = c1; // 宣告畫筆顏色初始值
int w = 5; // 筆畫粗細
size(a, b); // 畫布大小設定,a 為長邊,b 為寬
background(x, y, z); // 畫布色, xyz 分別為三原色 RGB
nostroke(); // 去掉圖案的邊線
fill(x, y, z, u);
// 讓所銜接的圖形指令上色與其透明度 xyz 分別為 RGB 三原色,u 為透明度
ellipse(x, y, w, h);
// 指定 x,y 座標為作圖中心,以 w 為長軸、h 為短軸做橢圓或圓形
文字上传测试