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
| package main | |
| import ( | |
| "net/http" | |
| "fmt" | |
| ) | |
| func writeExample(w http.ResponseWriter, r *http.Request) { | |
| str := `<html> | |
| <head><title>hello</title></head> |
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
| package main | |
| import ( | |
| "net/http" | |
| "io/ioutil" | |
| "fmt" | |
| ) | |
| func process_multipart_form(w http.ResponseWriter, r *http.Request) { | |
| r.ParseMultipartForm(1024) |
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
| package main | |
| import ( | |
| "net/http" | |
| "fmt" | |
| ) | |
| func process(w http.ResponseWriter, r *http.Request) { | |
| r.ParseForm() | |
| fmt.Fprintln(w, r.Form) |
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
| require 'thread' | |
| require 'json' | |
| require 'fiber' | |
| require 'eventmachine' | |
| require 'em-http-request' | |
| module Async | |
| class Request | |
| attr_accessor :url, :body |
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
| require 'pp' | |
| require 'em-synchrony' | |
| require 'em-synchrony/em-http' | |
| require 'em-synchrony/fiber_iterator' | |
| POST_URL = "http://localhost:4567/post_test" | |
| GET_URL = "http://localhost:4567/get_test" | |
| EM.synchrony do | |
| 1.times do |n| |
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
| * create postgresql user | |
| $ createuser -P -d -e [user] | |
| * create database on user | |
| $ createdb -O [user] [user_database_name] |
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
| <match slack> | |
| @type slack | |
| webhook_url https://hooks.slack.com/services/XXXXXXXX | |
| channel logs | |
| username suhanlee | |
| icon_emoji :ghost: | |
| flush_interval 60s | |
| message_keys messages | |
| </match> |
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
| Port 8090 | |
| # bind to all IPs aliased or not | |
| BindAddress 0.0.0.0 | |
| # max number of simultaneous clients | |
| MaxClients 1000 | |
| # max bandwidth per-client (kb/s) | |
| MaxBandwidth 100000 | |
| <Feed feed1.ffm> | |
| File /tmp/feed1.ffm |
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
| group :development, :test do | |
| gem 'capybara' | |
| gem 'selenium-webdriver', '~> 3.3.0' | |
| end |
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 React, { Component } from 'react'; | |
| import { StyleSheet, AppRegistry, Text, TextInput, View } from 'react-native'; | |
| class Hello extends Component { | |
| render() { | |
| return ( | |
| <View style={styles.layout}> | |
| <Text>번호를 입력하세요</Text> | |
| <View style={{width: 200, height: 50, backgroundColor: 'skyblue'}}> | |
| <TextInput style={styles.item} |