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 re, string, unicodedata | |
import nltk | |
import contractions | |
import inflect | |
from nltk import word_tokenize, sent_tokenize | |
from nltk.corpus import stopwords | |
from nltk.stem import LancasterStemmer, WordNetLemmatizer | |
def replace_contractions(text): | |
"""Replace contractions in string of text""" |
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 notifyDjango = (url) => { | |
// Record the URL of the file you've uploaded along with any data | |
// that is relevent to you. | |
} | |
const uploadToS3 = (file, url) => { | |
// Upload the file here | |
// See https://git.io/fhIz5 as a great example of handling all S3 upload edge cases. | |
} |
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
float xRange = 160; | |
float yRange = 5.f; | |
float xDetail = 10; | |
float yDetail = 10; | |
float markerStroke = .8f; | |
float lineStroke = 1.f; | |
float plotLineStroke = 1f; |
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
/* | |
* script to export data of the named sheet as an individual csv files | |
* sheet downloaded to Google Drive and then downloaded as a CSV file | |
* file named according to the name of the sheet | |
* original author: Michael Derazon (https://gist.github.com/mderazon/9655893) | |
*/ | |
function onOpen() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var csvMenuEntries = [{name: "Download Primary Time File", functionName: "saveAsCSV"}]; |
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
{ | |
"books": [ | |
{ | |
"book": "Genesis", | |
"verses": 1533, | |
"chapters": 50 | |
}, | |
{ | |
"book": "Exodus", | |
"verses": 1213, |
This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here
Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!
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
/** | |
* Convert string to match E.164 phone number pattern (e.g. +1234567890), | |
* otherwise return empty string. | |
*/ | |
function enforcePhoneNumberPattern(string) { | |
let newString = string.match(/[0-9]{0,14}/g); | |
if (newString === null) { | |
return ''; | |
} |
NewerOlder