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
import spark.SparkContext | |
import SparkContext._ | |
/** | |
* A port of [[http://blog.echen.me/2012/02/09/movie-recommendations-and-more-via-mapreduce-and-scalding/]] | |
* to Spark. | |
* Uses movie ratings data from MovieLens 100k dataset found at [[http://www.grouplens.org/node/73]] | |
*/ | |
object MovieSimilarities { |
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
package org.apache.spark.examples | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.rdd.RDD | |
import java.util.Random | |
import scala.collection.mutable | |
import org.apache.spark.serializer.KryoRegistrator | |
import com.esotericsoftware.kryo.Kryo |
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
package org.apache.spark.examples | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.rdd.RDD | |
import java.util.Random | |
import scala.collection.mutable | |
import org.apache.spark.serializer.KryoRegistrator | |
import com.esotericsoftware.kryo.Kryo |
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
# Xcode | |
!**/*.xcodeproj | |
!**/*.pbxproj | |
!**/*.xcworkspacedata | |
!**/*.xcsettings | |
!**/*.xcscheme | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 |
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 redis = require("redis") | |
, subscriber = redis.createClient() | |
, publisher = redis.createClient(); | |
subscriber.on("message", function(channel, message) { | |
console.log("Message '" + message + "' on channel '" + channel + "' arrived!") | |
}); | |
subscriber.subscribe("testchannel"); |
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
https://developer.mozilla.org/ko/docs/Web/HTTP/Status | |
http.STATUS_CODES | |
{ '100': 'Continue', | |
'101': 'Switching Protocols', | |
'102': 'Processing', | |
'200': 'OK', | |
'201': 'Created', | |
'202': 'Accepted', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
docker pull browserless/chrome | |
docker run -p 3000:3000 -e "MAX_CONCURRENT_SESSIONS=10" | |
-e "MAX_QUEUE_LENGTH=0" | |
-e "PREBOOT_CHROME=true" | |
-e "TOKEN=MYTOKEN" | |
-e "ENABLE_DEBUGGER=false" | |
-e "CONNECTION_TIMEOUT=300000" --restart always browserless/chrome |
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
/** | |
* Copyright 2018 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
enum DELIVERY_COMPANYCODE{ | |
CJGLS ="CJGLS" , KGB ="KGB" , EPOST ="EPOST", REGISTPOST="REGISTPOST", HANJIN ="HANJIN", HYUNDAI ="HYUNDAI", DAESIN ="DAESIN", | |
ILYANG ="ILYANG", KDEXP ="KDEXP", CHUNIL ="CHUNIL", CH1 ="CH1", HDEXP ="HDEXP", CVSNET ="CVSNET", DHL ="DHL", | |
FEDEX ="FEDEX", GSMNTON ="GSMNTON", WARPEX ="WARPEX", WIZWA ="WIZWA", EMS ="EMS", DHLDE ="DHLDE", ACIEXPRESS ="ACIEXPRESS", | |
EZUSA ="EZUSA", PANTOS ="PANTOS", UPS ="UPS", HLCGLOBAL ="HLCGLOBAL", KOREXG ="KOREXG", TNT ="TNT", SWGEXP ="SWGEXP", | |
DAEWOON ="DAEWOON", USPS ="USPS", IPARCEL ="IPARCEL", KUNYOUNG ="KUNYOUNG", HPL ="HPL", SLX ="SLX", HONAM ="HONAM", | |
GSIEXPRESS ="GSIEXPRESS", SEBANG="SEBANG", NONGHYUP ="NONGHYUP", CUPARCEL ="CUPARCEL", AIRWAY ="AIRWAY", HOMEPICK ="HOMEPICK", | |
APEX="APEX", CWAYEXPRESS="CWAYEXPRESS", YONGMA ="YONGMA", EUROPARCEL ="EUROPARCEL", KGSL="KGSL", GOS="GOS" ,GSPOSTBOX="GSPOSTBOX |
OlderNewer