Skip to content

Instantly share code, notes, and snippets.

View bynaki's full-sized avatar
💂‍♂️
I'll be back! 👍

bynaki bynaki

💂‍♂️
I'll be back! 👍
View GitHub Profile
@bynaki
bynaki / curl-install.md
Last active November 25, 2015 21:50
cURL 설치

cURL 설치

node-libcurl 을 사용하기 위해 curl 업데이트가 필요하다.

cURL is a very popular software utility that provides a command-line tool and a programming library useful for transferring and receiving data from servers. cURL supports many popular protocols. Here is the procedure about how to make and install cURL in a Mac OS X (Mountain Lion) computer

  1. Download the cURL from http://curl.haxx.se/download.html

  2. Open a Terminal and change directory to the folder where the above mentioned file was downloaded

  3. extract the compressed file with below command (change curl-7.30.0.tar in below command as per your download):

@bynaki
bynaki / generate-id.md
Last active February 13, 2024 06:10
JavaScript :: 유일한 ID 만들기.

JavaScript :: 유일한 ID 만들기.

var newID = function () {
  return Math.random().toString(36).substr(2, 16);
}
console.log(newID());
@bynaki
bynaki / 1510fa58be0-922421e5.md
Last active November 18, 2015 21:16
Coffee Script - 설치. - Coffee Script 명령어 - JavaScript로 컴파일. -

Coffee Script

설치.

$ npm install -g coffee-script

Coffee Script 명령어

@bynaki
bynaki / 1511108670c-ace6e098.md
Last active November 24, 2015 10:05
JavaScript :: marked api - Install - Usage - Browser - marke

:origin:

JavaScript :: marked api

A full-featured markdown parser and compiler, written in JavaScript. Built for speed.

[NPM version][badge]

Install

@bynaki
bynaki / 151202ee168-8883283.md
Last active November 24, 2015 09:28
JavaScript :: File Dialog 만들기. :: jquery 를 이용하여. - Preview s

:origin:

JavaScript :: File Dialog 만들기. :: jquery 를 이용하여.

Preview selected images for uploading using jQuery

  • Published on 21st November 2013

This is the continuation of how to open a multi select file dialogue just using JavaScript. In this tutorial I will explain how to preview the selected files before upload.

@bynaki
bynaki / 1512567e16f-05ebaa06.md
Last active November 24, 2015 09:22
JavaScript :: 선택 문자열 가져오기. :: Selected Text - Demo

:origin:

JavaScript :: 선택 문자열 가져오기. :: Selected Text

You may have noticed that a few sites out there trigger some type of event when you use your mouse to select a word or a block of text on the page. After selecting some text, a little pop-up might appear allowing you to look up the definition of the selected word, or search Google for the selected phrase. The New York Times online is a perfect example; while reading any of their articles, select a block of text with your mouse and you'll notice a little balloon like icon appears. If you click the balloon icon, a pop-up window opens that back searches all New York Times articles for the selected text. Like any reasonable software engineer, I was curious how the New York Times online implemented this select, click, and search feature.

As it turns out, implementing your own is quite easy with jQuery [a

@bynaki
bynaki / 15126cbb0e0-f32c051d.md
Last active November 20, 2015 21:51
CSS - border - border: width style color - border-radius: to

CSS

border

border: width style color

{ border: 1px solid #dddddd; }

border-radius: top-left top-right bottom-right bottom-left

@bynaki
bynaki / 15126d3c95e-d81b0a9b.md
Last active December 1, 2015 03:43
Atom :: Style Less 변수들. :: @import "ui-variables"

Atom :: Style Less 변수들. :: @import "ui-variables"

ui-variables.less 파일에 추가:

@import "ui-variables";

ui-variables.less:

@bynaki
bynaki / 15126f05e27-b2ba15b7.md
Last active November 20, 2015 23:02
html - 참고 사이트 - <img> - ex01 - ex02 :: 이미지 사이즈 제한.
@bynaki
bynaki / 15139b754c2-512fdd01.md
Last active March 14, 2019 06:15
Node.js :: Buffer :: 바이너리 데이터의 조작, 인코딩, 디코딩을 위한 버퍼 활용 :: Usi

Node.js :: Buffer :: 바이너리 데이터의 조작, 인코딩, 디코딩을 위한 버퍼 활용 :: Using Buffers to Manipulate, Encode, and Decode Binary Data

버퍼의 길이는 바이트로 지정하며, 버퍼에서는 임의로 바이트를 설정하고, 가져올 수 있다.

버퍼의 생성 :: CREATING A BUFFER

utf-8 인코딩된 문자열로 버퍼 생성:

var buf = new Buffer('Hello World!'); // 기본은 utf-8 인코딩.