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
{ | |
"aa": "aa", | |
"ab": "ab", | |
"abe": "abe", | |
"ace": "ace", | |
"ady": "ady", | |
"aeb-Arab": "aeb-arab", | |
"af": "af", | |
"ak": "ak", | |
"aln": "aln", |
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
{ | |
"version": "1.0.2", // version of the manifest format | |
"mediawiki": { | |
"name": "Wikidata", | |
"root": "https://www.wikidata.org/wiki/", | |
"main_page": "https://www.wikidata.org/wiki/Wikidata:Main_Page", | |
"api": "https://www.wikidata.org/w/api.php" | |
"namespace": { | |
"item": "Item", |
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
# Shrink specific columns down, so the key combination for the constraints | |
# aren't larger than the max legnth, when not using innodb_large_prefix. | |
# Length may require tweaking depending on application requirements | |
SOCIAL_AUTH_UID_LENGTH = 190 | |
SOCIAL_AUTH_NONCE_SERVER_URL_LENGTH = 190 | |
SOCIAL_AUTH_ASSOCIATION_SERVER_URL_LENGTH = 190 | |
SOCIAL_AUTH_ASSOCIATION_HANDLE_LENGTH = 190 | |
SOCIAL_AUTH_EMAIL_LENGTH = 190 |
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 spark | |
import java.io._ | |
import java.util.zip.Deflater | |
import com.esotericsoftware.kryo.io.{Input => KryoInput, Output => KryoOutput} | |
import com.esotericsoftware.kryo.serializers.DeflateSerializer | |
import com.twitter.chill.{AllScalaRegistrar, EmptyScalaKryoInstantiator} | |
import org.apache.hadoop.io.compress.DeflateCodec |
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 tornado.ioloop | |
import tornado.web | |
import tornado.httpserver | |
import tornado.httputil | |
import json | |
class MainHandler(tornado.web.RequestHandler): | |
def post(self): | |
# do something useful | |
name = self.get_argument('foo') |