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
# Gem Depends: ve, docopt | |
# System Depends: mecab, mecab-ipadic-utf-8 | |
require 'csv' | |
require 've' | |
require 'docopt' | |
doc = <<DOCOPT | |
Lemma Frequency Report. | |
Usage: |
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
package com.example.stephen.myapplication; | |
import android.test.ActivityInstrumentationTestCase2; | |
import android.test.TouchUtils; | |
import android.widget.TextView; | |
/** | |
* Created by stephen on 15/06/03. | |
*/ | |
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> { |
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 System.Environment (getArgs) | |
import Data.List (isPrefixOf, partition) | |
import Data.Char (toLower) | |
checkWord :: String -> Int -> Int -> String -> Bool | |
checkWord begin vowels consonants s = isPrefixOf begin s && vowels == vCount && consonants == cCount | |
where isVowel = flip elem "aeiou" | |
(vCount, cCount) = let (vs, cs) = partition isVowel s in (length vs, length cs) | |
main = do |
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
/* | |
* recursive backtracking translated from the ruby at | |
* http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking | |
*/ | |
use std::io::stdio::print; | |
use std::io::stdio::println; | |
// Height and width, change these for a different maze size | |
// (sorry, it's not a command line argument, as that would |
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
div.container { | |
width: 60%; | |
height: 60%; | |
background-color: hsl(0, 0%, 92%); | |
position: absolute; | |
top:0; | |
bottom: 0; | |
left: 0; | |
right: 0; |
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import re | |
try: | |
from urllib.parse import unquote | |
except ImportError: | |
from urllib import unquote | |
adfly_url = sys.argv[1] |