<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
def format_filename(s): | |
"""Take a string and return a valid filename constructed from the string. | |
Uses a whitelist approach: any characters not present in valid_chars are | |
removed. Also spaces are replaced with underscores. | |
Note: this method may produce invalid filenames such as ``, `.` or `..` | |
When I use this method I prepend a date string like '2009_01_15_19_46_32_' | |
and append a file extension like '.txt', so I avoid the potential of using | |
an invalid filename. | |
import numpy as np | |
from scipy.sparse import csc_matrix | |
def pageRank(G, s = .85, maxerr = .001): | |
""" | |
Computes the pagerank for each of the n states. | |
Used in webpage ranking and text summarization using unweighted | |
or weighted transitions respectively. |
brew install fish
curl -L https://get.oh-my.fish | fish
var HelloModal = React.createClass({ | |
getInitialState: function() { | |
return { | |
visible: false | |
}; | |
}, | |
componentDidMount: function() { | |
var self = this; | |
$(window).on('modal.visible', function(ev){ | |
self.setState({visible: true}); |
from gensim import models | |
sentence = models.doc2vec.LabeledSentence( | |
words=[u'so`bme', u'words', u'here'], tags=["SENT_0"]) | |
sentence1 = models.doc2vec.LabeledSentence( | |
words=[u'here', u'we', u'go'], tags=["SENT_1"]) | |
sentences = [sentence, sentence1] | |
class LabeledLineSentence(object): |
(Updated 2022-11-16 with suggestions from comments below, Twitter and Mastodon)
An incomplete list of people in the Python community to follow on Twitter and Mastodon.
With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.
I would love you to comment below with links to people I've missed.