This file contains hidden or 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
| #! /bin/bash | |
| apps=( | |
| #productivity | |
| send-to-kindle | |
| calibre | |
| slack | |
| virtualbox | |
| balsamiq-mockups | |
| bittorrent-sync |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| from gevent import monkey; monkey.patch_all() | |
| import re | |
| from urlparse import urljoin | |
| from gevent.pool import Pool | |
| import requests |
This file contains hidden or 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
| var request = require('request'); | |
| var cheerio = require('cheerio'); | |
| var url = "http://codenamu.org/blog/"; | |
| var blog = []; | |
| function getData (url) { | |
| request(url, function (err, res, html) { | |
| if (!err) { | |
| var $ = cheerio.load(html); |
This file contains hidden or 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
| function removeJsonDepth(a, target) { | |
| for (key in a) { | |
| if(typeof a[key] == 'object') { | |
| removeJsonDepth(a[key], target); | |
| } else { | |
| target[key] = a[key]; | |
| } | |
| } | |
| } |
This file contains hidden or 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
| node_modules |
This file contains hidden or 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
| /* Exercise: Loops and Functions #43 */ | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) float64 { | |
| z := float64(2.) |
This file contains hidden or 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
| import json | |
| import csv | |
| CSV_FILENAME = 'services.csv' | |
| JSON_FILENAME = 'services.json' | |
| COLUMNS = ('์ ๋ชฉ', '์ง์๋ด์ฉ', '์๋น์ค ๋ชฉ์ ', '์ํ์ผ์', '์ข ๋ฃ์ผ์', '์๊ด๊ธฐ๊ด', '์๊ด๊ธฐ๊ด ์ฐ๋ฝ์ฒ', '๊ด์ฌ๋ถ์ผ', '์ง์ํํ', '์ง์๋์', '์๊ธ์๊ฒฉ', '์ ์ ๊ธฐ์ค', '์ค๋ณต๋ถ๊ฐ ์๋น์ค', '์ ์ฒญํ์์ฌ๋ถ', '์จ๋ผ์ธ์ ์ฒญ๊ฐ๋ฅ์ฌ๋ถ', '์ฒ๋ฆฌ๊ธฐํ', '์ ์ฒญ์ ์ฐจ', '๊ตฌ๋น์๋ฅ', '์ ์ฒญ๊ธฐํ', '์ ์๊ธฐ๊ด', '์ ์๊ธฐ๊ด ์ฐ๋ฝ์ฒ', '์ฒ๋ฆฌ๊ธฐ๊ด', '์ฒ๋ฆฌ๊ธฐ๊ด ์ฐ๋ฝ์ฒ', '๋ฌธ์์ฒ', '๋ฌธ์์ ํ๋ฒํธ', '์น์ฌ์ดํธ') | |
| def convert(): | |
| csv_reader = open(CSV_FILENAME, 'r') | |
| json_writer = open(JSON_FILENAME, 'w') |
This file contains hidden or 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
| import sys | |
| import csv | |
| from pymongo import MongoClient | |
| MONGO_HOST = 'localhost' | |
| MONGO_PORT = 27017 | |
| DOCUMENT_NAME = 'test' | |
| COLLECTION_NAME = 'service' |
This file contains hidden or 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
| from os import listdir | |
| import sys | |
| import json | |
| import csv | |
| import gevent | |
| import pandas as pd | |
| import numpy as np |
This file contains hidden or 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
| library(jsonlite) | |
| basic.members <- fromJson("assembly_members.json") | |
| basic.attendances <- read.csv("attendances.csv") | |
| members <- basic.members[, c("idx", "name_kr", "party", "when_elected")] | |
| main.attendances <- merge(members, basic.attendances, by = "idx") | |
| write.csv(main.attendances, file = "main_attendaces.csv", sep = ",", row.names = FALSE) |
OlderNewer