Skip to content

Instantly share code, notes, and snippets.

View icq4ever's full-sized avatar
🌏
127.0.0.1

Yi donghoon icq4ever

🌏
127.0.0.1
View GitHub Profile

Node.js 로 db다루기, application 만들기

MySQL

Mysql 접속 : mysql -uroot -p

db만들기 : create database something;

@icq4ever
icq4ever / body text.md
Last active January 11, 2018 03:33
scattering lights, gliding sounds body text

scattering lights

SCATTERING LIGHTS

흩어지는 빛

'흩어지는 빛, 미끄러지는 소리'는 온도, 풍향, 풍속, 습도 등 서울과 평창의 날씨 정보를 빛과 소리의 신호로 치환해 보행자들이 공감각적 경험을 통해 자연의 아름다움을 느낄수 있도록 하였다. 김다움, 이동훈, 핫산 후자이리가 참여했다.

서울로7017 에서 2018년 2월 28일까지 매일 오후 5:30부터 오후 11시 사이에 시연된다.

@icq4ever
icq4ever / EaglePanWithCtrl.md
Last active October 28, 2024 16:15
make Autodesk Eagle panning with Ctrl Key

why?

usually I work with thinkpad laptop. which has trackpoint and trackpad.
eagle has no pan command. by default, panning needs mouse wheel.
but usually I don't use it. i prefer trackpoint. that's why love thinkpad laptop.

where is eaglerc file?

  • for windows users, this file located here -> c:\Users\_yourUserName_\AppData\Roaming\Eagle\setrtings\9.6.2\eaglerc
  • for linux users, this file located here -> ~/.local/share/Eagle/settings/9.3.1/eaglerc
    • you might need to replace 9.3.1 to installed eagle version
@icq4ever
icq4ever / part_01.md
Last active September 5, 2017 02:01
테크놀로지아트1 - 1학기 복습내용

1학기 내용 복습

processing 설치 확인

프로그래밍 기초

  • 컴파일
  • 스케치 및 캔버스
  • 명령어(함수)
  • 세미콜론
@icq4ever
icq4ever / c_cpp_properties.json
Last active August 23, 2017 05:46
oF x visual studio code settings. [tested with MacOS.]
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
"/usr/local/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
"/usr/include",
@icq4ever
icq4ever / test.cpp
Last active August 14, 2017 17:10
test
// original
std::list<std::pair<int,double> > nbors;
std::list<std::pair<int,double> >::iterator iter;
//find 'k' closest neighbors of testpoint
double x, y, xT, yT, dist;
// SEARCHING FOR BLOBS
for(int i=0; i < newBlobs->nBlobs; i++){
x = newBlobs->blobs[i].centroid.x;
@icq4ever
icq4ever / integration.cpp
Created August 1, 2017 03:00
get distance from acceleration and gyroscope
/*
ofVec3f lastAccel;
ofVec3f speed;
ofVec3f lastSpeed;
ofVec3f distance;
ofVec3f lastDistance;
ofVec3f gyro, lastGyro;
@icq4ever
icq4ever / VSCode+processing_tip.md
Last active February 22, 2017 09:08
VisualStudioCode Processing extension setup
  1. download visualStudioCode from here
  2. open PDE file
  3. [Ctrl + Shift + P] and type task
  4. select Tasks : Configure Task Runner
  5. replace with below
{
    "version": "0.1.0",
    "command": "processing-java",
 "isShellCommand": true,
const int numReadings = 10;
int readings[numReadings]; // the readings from the analog input
int readIndex = 0; // the index of the current reading
int total = 0; // the running total
int average = 0; // the average
int inputPin = A0;
int distance;
void ofApp::setup() {
camWidth = 1280;
camHeight = 800;
cam.initGrabber(camWidth, camHeight);
tracker.setup();
camImg.allocate(camWidth, camHeight, OF_IMAGE_COLOR); // ofImage camImg - full size
copiedImg.allocate(camWidth/2, camHeight/2, OF_IMAGE_COLOR); // ofImage copiedImg - half size
fbo.allocate(camWidth/2, camHeight/2); // ofFbo fbo - half size