Skip to content

Instantly share code, notes, and snippets.

View olp-cs's full-sized avatar

Olga Pustovalova olp-cs

View GitHub Profile
@olp-cs
olp-cs / python-study-group.md
Last active November 18, 2016 11:35
Учебная группа по Python: скайп-чат

Учебная группа по Python: скайп-чат

Ссылка на скайп-чат

skype:?chat&blob=hMiRW3mVON1wnwnIEefLw2U5HrI-NeHRiPLX_til6rAVsSIr1oYX0NZboKY6PPMnxQfbTGxA7tK5D9HwnjIRWo42_HcyU6aGTWTAZRM_k_kvj8IqFwBl-qJOjDEcSoWeJCHND8o6ltmHl_TEgCMmssW84IZIT73H68Ppl80oe6UGSziKYzst-WK_Bz9Ws_TV4A

Как присоединиться к скайп-чату

  • Попробуйте открыть ссылку в каком-нибудь браузере (например, Firefox). Должен открыться Skype с окном чата.
@olp-cs
olp-cs / corpus-linguistics.md
Created December 30, 2013 13:35
Corpus linguistics: method, analysis, interpretation - A Seasonal, Corpus Linguistics, Gift!

Corpus linguistics: method, analysis, interpretation - A Seasonal, Corpus Linguistics, Gift!

FutureLearn [email protected]

Dec 24 (6 days ago)

Well, in the UK it is Christmas Eve and the giving of presents will begin in the morning. So I thought I would start a little early and send you a note to say what the Corpus Linguistics course has in store for you in 2014! OK – a very academic present, I know, but I think it is one you will appreciate. Each week will be split into four. There will be an introductory lecture on a topic, one or more advanced lectures covering similar topics (or just plain interesting topics), a ‘how to’ session where you can develop corpus searching and building skills and, last but not least, one or more ‘in conversation’ videos where I talk to a friend about their use of corpus linguistics. Some of this you know if you have been following my emails and tweets so far (for those of you who are not but would like to follow the tweets follow me @TonyMcEn

@olp-cs
olp-cs / test.json
Created February 24, 2014 12:45
Test
{
"metadata": {
"name": "exploring_a_single_data_file"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olp-cs
olp-cs / gist:8ac9e6e6f82d8e21cebe
Last active September 10, 2015 19:25 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@olp-cs
olp-cs / print_cm.py
Created November 4, 2015 06:59 — forked from zachguo/print_cm.py
Pretty print for sklearn confusion matrix
from sklearn.metrics import confusion_matrix
def print_cm(cm, labels, hide_zeroes=False, hide_diagonal=False, hide_threshold=None):
"""pretty print for confusion matrixes"""
columnwidth = max([len(x) for x in labels]+[5]) # 5 is value length
empty_cell = " " * columnwidth
# Print header
print " " + empty_cell,
for label in labels:
print "%{0}s".format(columnwidth) % label,
@olp-cs
olp-cs / function_lengths.py
Created December 30, 2015 15:31 — forked from minrk/function_lengths.py
Count all function lengths under a directory
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
from pandas import DataFrame
from pandas.util.testing import set_trace
dirs = []
library(igraph) # to work with graphs
library(RColorBrewer) # to use a color palette
library(plotrix) # to rescale variables
# Read the data
raw_data <- read.csv("network_data.csv")
names(raw_data) <- c("Source", "Target", "Count", "Money")
# reformat data for igraph library
@olp-cs
olp-cs / test-type-error.ipynb
Last active July 16, 2024 10:15
GEOparse - Failing test: `test_merge_and_average` fails with a TypeError
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olp-cs
olp-cs / README.md
Created July 27, 2024 16:06
[GEOParse] Non-breaking change compatible with pandas 1.3.0 and 2.2.2