This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkPointLimit = booklist.length; | |
appendBookId(booklist, body); | |
_.each(booklist, function(book, key) { | |
var o = _.clone(opt); | |
o.bookId = book.bookId; | |
var index = key; | |
searchDetail(o, function (err, exist) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appendBookId(booklist, body); | |
var tasks = []; | |
_.each(booklist, function(book, key) { | |
var o = _.clone(opt); | |
o.bookId = book.bookId; | |
tasks.push(function (callback) { | |
searchDetail(o, function (err, exist) { | |
if (err) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Filename: temperature.sh | |
command -v npm >/dev/null 2>&1 || { echo >&2 "I require npm but it's not installed. Aborting."; exit 1; } | |
command -v node >/dev/null 2>&1 || { echo >&2 "I require node but it's not installed. Aborting."; exit 1; } | |
cd /tmp | |
npm install request cheerio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Reading Web Data Example", | |
"description": "This extension shows a current temperature of the seoul", | |
"version": "1.0", | |
"browser_action": { | |
"default_popup": "popup.html" | |
}, | |
"permissions": [ | |
"https://www.accuweather.com/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require('electron') | |
// Module to control application life. | |
const app = electron.app | |
// Module to create native browser window. | |
const BrowserWindow = electron.BrowserWindow | |
const path = require('path') | |
const url = require('url') | |
// Keep a global reference of the window object, if you don't, the window will |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [1] | |
a | |
a.push(2) | |
a | |
a[a.length] = 9 | |
a | |
a = a.concat([4, 5]) | |
a | |
a.splice(a.length, 0, 5, 6, 7) | |
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = {} | |
b = new Object() | |
typeof(a) | |
typeof(b) | |
a | |
b | |
a['name'] = 'apple' | |
a['color'] = 'red' | |
a | |
Object.entries(a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>네모 굴리기 - HTML, CSS 사용한 버전</title> | |
<meta charset="utf-8" /> | |
<style> | |
.square { | |
width: 100px; | |
height: 100px; | |
border: 1px solid red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-~/.xmonad/xmonad.hs-} | |
{-xmonad 0.11.1-} | |
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO | |
import XMonad.Actions.CycleWS | |
import qualified XMonad.StackSet as W |
OlderNewer