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
| location ^~ /.well-known/ { | |
| # Alias must point to the folder itself and end with a slash | |
| alias /home/ubuntu/static_assets/.well-known/; | |
| # Ensure browsers treat them as JSON | |
| default_type application/json; | |
| # Allow cross-origin (needed for some validators) | |
| add_header Access-Control-Allow-Origin "*"; |
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
| { | |
| "breadcrumbs": [ | |
| { | |
| "name": "ๆค็ดข็ตๆ 4,000 ไปฅไธ ใฎใใก 1-48ไปถ" | |
| }, | |
| { | |
| "name": "\"roblox\"" | |
| } | |
| ], | |
| "products": [ |
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
| export PGPORT ?= 4488 | |
| PG_PATH ?= $(shell if test -d /usr/lib/postgresql/9.1; then echo /usr/lib/postgresql/9.1; else echo /usr/lib/postgresql/8.4; fi) | |
| PG_DIR = ${PWD}/instance/var | |
| PG_DATA = ${PG_DIR}/data | |
| PG_RUN = ${PG_DIR}/run | |
| PG_LOG = ${PG_DIR}/log | |
| PG_SOCKET = ${PG_RUN}/.s.PGSQL.${PGPORT} | |
| PGPARAMS = -D ${PG_DATA} -o "-F -c unix_socket_directory=${PG_RUN} -c custom_variable_classes='busy' -c busy.active_user=0" -l ${PG_LOG}/pg.log | |
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
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
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
| {"options": {"A": "ใใฏใ", "C": "ใใใ", "B": "ใใซใใ", "D": "ใใ ใใฎ"}, "key": "C. ใใใ", "stem": "A:ใ้่ใใ้ฃ(ใ)ในใชใใ๏ผ B:ใใใใใใ๏ผ"} | |
| {"key": "ใง", "stem": "ใใใฏใใฆ๏ผ ๏ผ้ฃในใใใฎใงใใ"} | |
| {"options": {"A": "ใใใ", "C": "ใใฃใใ", "B": "ใใใใ", "D": "ใใใใ"}, "key": "D. ใใใใ", "stem": "ใๅ ็ใใฏใฉใใซใใพใใ๏ผ"} | |
| {"options": {"A": "ใใใณใใใใ", "C": "ใจใใใใค", "B": "ใใใใ", "D": "ใปใใฉใใใใ"}, "key": "A. ใใใณใใใใ", "stem": "ใ้ตไพฟๅฑใใงใใฃใฆใ่ฒท(ใ)ใใพใใ"} | |
| {"key": "ใ", "stem": "ใใฟใพใใใใงใใใฐใใใ๏ผ ๏ผใพใกใใใพใใใ"} | |
| {"options": {"A": "้ญใ", "C": "่ฑใ", "B": "็จใ", "D": "่ใ"}, "key": "C. ่ฑใ", "stem": "้ดใใใฌใใใชใใใ"} | |
| {"options": {"A": "ใฎ,ใง", "C": "ใฎ,ใซ", "B": "ใจ,ใง", "D": "ใจ,ใซ"}, "key": "D. ใจ,ใซ", "stem": "ใใใใใคใฏไธใใ๏ผ ๏ผไบใใ๏ผ ๏ผใใใพใใ"} | |
| {"options": {"A": "ใใค", "C": "ใใฐใ", "B": "ใใ", "D": "ใใผใ"}, "key": "A. ใใค", "stem": "ใ้ดใใใฏใใพใใ"} | |
| {"options": {"A": "ใใ", "C": "ใ ใ", "B": "ใซ", "D": "ใ"}, "key": "A. ใใ", "stem": "ใใ ใใใใฏ10ใ๏ผ ๏ผใงใใ"} | |
| {"options": {"A": "ใใ", "C": "ใใ", "B": "ใฏ", "D": "ใใใ"}, "key": "A. ใใ", "stem": "ใฉใผใกใณ๏ผ ๏ผใใฏใใฎใปใใใใใงใใ"} |
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
| # Copyright (C) 2013 Wesley Baugh | |
| """Tools for text classification. | |
| Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
| """ | |
| from __future__ import division | |
| import math | |
| from collections import defaultdict, namedtuple, Counter | |
| from fractions import Fraction |
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 spacy | |
| class ColourExtractorStrict: | |
| """Extract colours along with adjectives""" | |
| def __init__(self, colours): | |
| self.colours = colours | |
| self.pos_ok = ['ADJ', 'NOUN'] | |
| self.tagger = spacy.load('en') |
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
| def slytherin(string): | |
| """Convert & return strings in camelCase to snake_case""" | |
| tmp = re.sub(pattern=r'(.)([A-Z][a-z]+)', repl=r'\1_\2', string=string) | |
| return re.sub(pattern=r'([a-z0-9])([A-Z])', repl=r'\1_\2', string=tmp)\ | |
| .lower() |
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
| for file in $(find . -type f -print); do zipinfo -m "$file" | awk -v filename="$file" -F ' ' '{ print $4, "\t", $6, "\t", $10, "\t", filename }'; done; |
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 | |
| for filename in $(find . -type f -print) | |
| do | |
| du_out=$(du -s $filename) | |
| splitted=($(echo ${du_out})) | |
| size="${splitted[0]}" | |
| abs_path="${splitted[1]}" | |
| parent_dir=$(basename $(dirname "$abs_path")) | |
| filename=$(basename "$abs_path") |
NewerOlder