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 ์ธ์ฝ”๋”ฉ.