Skip to content

Instantly share code, notes, and snippets.

View tboydar's full-sized avatar
🎯
Focusing

Dar tboydar

🎯
Focusing
View GitHub Profile
@tboydar
tboydar / arduino blink 13
Created September 16, 2021 13:47
arduino
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v1.2.0/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for pprof@1.2.0 and node@12.22.5 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
在此解決方案中一次建置一個專案。若要啟用平行建置,請新增 "/m" 參數。
profiler.cc
win_delay_load_hook.cc
c:\users\eugene\appdata\local\node-gyp\cache\12.22.5\include\node\node.h(655): warning C4819: 檔案含有無法在目前字碼頁 (950) 中表示的字元。請以 Unicode 格式儲存檔案以防止資料遺失 (正在編譯原始程式檔 ..\bindings\profiler.cc) [F:\ST
\social_be\node_modules\pprof\build\pprof.
vcxproj]
f:\st\social_be\node_modules\pprof\bindings\profiler.cc(140): error C2131: 運算式未評估為常數 [F:\ST\social_be\node_modules\pprof\build\pprof.vcxproj]
' https://plantuml.com/zh/
'
@startuml
header 20210412
title 貓貓鬧鐘
skinparam sequenceArrowThickness 2
skinparam roundcorner 20
skinparam maxmessagesize 60
skinparam sequenceParticipant underline
actor User
' https://plantuml.com/zh/
@startuml
header 20210411
title 心如止水
skinparam sequenceArrowThickness 2
skinparam roundcorner 20
skinparam maxmessagesize 60
skinparam sequenceParticipant underline
actor User
participant "心跳感測" as A
#define OSX 0
#define WINDOWS 1
#define UBUNTU 2
#include "Keyboard.h"
int platform = OSX;
void setup() {
size(200,200);
line(random(200),random(200),random(200),random(200));
line(random(200),random(200),random(200),random(200));
line(random(200),random(200),random(200),random(200));
line(random(200),random(200),random(200),random(200));
line(random(200),random(200),random(200),random(200));
line(random(200),random(200),random(200),random(200));
saveFrame("dar_0308a.jpg");
@tboydar
tboydar / README.md
Created November 18, 2020 12:38 — forked from nicejade/README.md
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

/*****************************************************************************/
// Function: Get the accelemeter of the x/y/z axis.
// Hardware: Grove - 3-Axis Analog Accelerometer
// Arduino IDE: Arduino-1.0
// Author: Frankie.Chu
// Date: Jan 11,2013
// Version: v1.0
// by www.seeedstudio.com
//
// This library is free software; you can redistribute it and/or
/*
這個程式的目標是希望可以激起程式高手願意修改我的程式的熱情。
arduino tutorial: https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button
電路圖參考: https://fritzing.org/projects/digital-input-button/
*/
#define buttonPin 12
#define ledPin 13
#define digitalWrite myWrite
int a = 0; // 你是
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(100); // 1000ms = 1s , 100ms = 0.1s
digitalWrite(13, LOW);
delay(100); // 1000ms = 1s , 100ms = 0.1s
}