Skip to content

Instantly share code, notes, and snippets.

View endlessdev's full-sized avatar
🚀
Launching Rocket

Jade Yeom endlessdev

🚀
Launching Rocket
View GitHub Profile
@endlessdev
endlessdev / migrateHeroicons.js
Created February 7, 2024 07:06 — forked from christiangenco/migrateHeroicons.js
Heroicons v1 to v2
const fs = require("fs");
if (!fs.existsSync("package.json")) {
console.error(
"Cannot find package.json. Please run this script in your project directory."
);
process.exit(1);
}
const package = fs.readFileSync("package.json", "utf8");
@endlessdev
endlessdev / prisma-client.ts
Created July 7, 2019 15:52
Prisma Tutorial 1
// Code generated by Prisma (prisma@1.34.1). DO NOT EDIT.
// Please don't change this file manually but run `prisma generate` to update it.
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/
import { DocumentNode } from "graphql";
import {
makePrismaClientClass,
BaseClientOptions,
Model
} from "prisma-client-lib";
@endlessdev
endlessdev / ㅁㄴㅇㄹ. ino
Created June 21, 2017 12:57
WTH 수행평가
#define BUTTON1 3#define BUTTON2 4#define BUTTON3 5
#define LED1 9#define LED2 10#define LED3 11
#define BUZZER 2
bool buttonFlag = false;
void setup(){
  Serial.begin(9600);    pinMode(LED1, OUTPUT);  pinMode(LED2, OUTPUT);  pinMode(LED3, OUTPUT);    pinMode(BUTTON1, INPUT_PULLUP);  pinMode(BUTTON2, INPUT_PULLUP);  pinMode(BUTTON3, INPUT_PULLUP);    pinMode(BUZZER, OUTPUT);
  attachInterrupt(digitalPinToInterrupt(BUTTON1), onButtonChanged, FALLING);  attachInterrupt(digitalPinToInterrupt(BUTTON2), onButtonChanged, FALLING);  attachInterrupt(digitalPinToInterrupt(BUTTON3), onButtonChanged, FALLING);}
void onButtonChanged(){  if(buttonFlag) return;
  bool isClickedFirst = !digitalRead(BUTTON1);  bool isClickedSecond = !digitalRead(BUTTON2);  bool isClickedThird = !digitalRead(BUTTON3);
  if(isClickedFirst){    Serial.println("clicked 1");    digitalWrite(LED1, HIGH);    tone(BUZZER, 200, 1000);  }   if (isClickedSecond){    Serial.println("clicked 2");    digitalWrite(LED2, HIGH);    tone(BUZZER, 300, 1000); 
@endlessdev
endlessdev / 8x8_matrix_led.c
Created June 15, 2017 03:23
Arduino 8x8 Matrics LED
#include <LedControl.h>
#define DIN 12
#define CS 11
#define CLK 10
#define AMOUNT_LCD 3
#define NAME_FIRST {0x7C,0x50,0x7C,0x00,0xFE,0x38,0x44,0x38}
#define NAME_SECOND {0x18,0x24,0x18,0x00,0x7E,0x18,0x18,0x18}
#define NAME_LAST {0x48,0xB5,0x69,0x27,0xE5,0x07,0x00,0x00}
@endlessdev
endlessdev / sketch_study_1_RTC.c
Created May 31, 2017 06:24
RTC(Real Time Clock) Module - 아두이노, 1602 캐릭터 LCD, RTC Module를 사용하여 ▪ 현재 날짜와 요일 시간을 모두 표시하는 탁상시계를 제작하시오.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Time.h>
#include <TimeLib.h>
#include <DS1302RTC.h>
#define RST 2 // RST or CE
#define DAT 3 // DAT or IO
#define CLK 4 // CLK
@endlessdev
endlessdev / 태양계의_행성_1.md
Last active October 6, 2015 12:11
태양계의 행성_1

#태양계의 행성

본 마크다운 문서는 한국디지털미디어고등학교 2015년 1학년 2학기 중간고사의 과학시험범위를 기준으로 요약정리한 문서입니다.

본 문서의 저작권은 작성자 염승우에게 있으며, [모두가 만드는 모두의 배움터, 두런][1]서비스에 귀속됩니다.

현재 [모두가 만드는 모두의 배움터, 두런][1]서비스가 업데이트가 진행되지 않은 관계로, GitHub에 업로드합니다.

업데이트가 완료된 후 두런서비스로 마이그레이션 하겠습니다.