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
(defn update-count | |
[word counter-atom] | |
(swap! counter-atom update word #(if %1 (inc %1) 1))) | |
(defn process-quote | |
[q counter-atom] | |
(let [quote-words (clojure.string/split q #"\W+") | |
lowercased-words (map clojure.string/lower-case quote-words)] | |
(doseq [word lowercased-words] | |
(update-count word counter-atom)))) |
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 json | |
import fileinput | |
import urllib.request | |
import sys | |
key = "" | |
url = "https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=" + \ | |
key + \ | |
"&lang=en-ru&text=" | |
count = 0 |
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
#!/bin/sh | |
header='\ | |
<html>\ | |
<head>\ | |
<meta charset="utf-8"> \ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0">\ | |
<link rel="stylesheet" href="http://cmcenroe.me/writ/writ.min.css"> \ | |
<style>\ | |
a { background-size: 16px; \ |
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
#include <iostream> | |
#include <vector> | |
template <size_t N, class ElementType> | |
class Tensor | |
{ | |
std::vector<Tensor<N - 1, ElementType>> data_; | |
public: | |
Tensor<N - 1, ElementType>& operator[](size_t index) |
This file has been truncated, but you can view the full file.
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
"./data3/1417546292 485560280.links" /wiki/Multimedia 0.00670003 | |
"./data3/1417546461 1540232676.links" /wiki/Category:Stubs 0.00475996 | |
"./data3/1417546603 1196556829.links" /wiki/Category:Technology_stubs 0.00411486 | |
"./data3/1417546354 885799631.links" /wiki/Category:Geography_stubs 0.0036936 | |
"./data3/1417546346 1782280524.links" /wiki/United_States 0.00361906 | |
"./data3/1417546358 712633417.links" /wiki/Definition 0.00254944 | |
"./data3/1417546597 1514346896.links" /wiki/Category:Math_stubs 0.00253875 | |
"./data3/1417546612 1536129205.links" /wiki/Category:Science_stubs 0.00237955 | |
"./data3/1417546473 202029501.links" /wiki/International_Standard_Book_Number 0.00232193 | |
"./data3/1417546486 1312712376.links" /wiki/Category:Biology_stubs 0.00220784 |