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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.0' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets |
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
# -*- coding: utf-8 -*- | |
import logging | |
import os.path | |
import sys | |
from gensim.corpora.wikicorpus import filter_wiki | |
from gensim.corpora import Dictionary, HashDictionary, MmCorpus, WikiCorpus | |
from gensim.models import TfidfModel |
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
require 'RMagick' | |
raise "wtf. you should input target image." if ARGV.length == 0 | |
original = Magick::Image.read(ARGV[0]).first | |
original_name = ARGV[0].split("/")[ARGV[0].split("/").length - 1] | |
Dir.mkdir("res") unless Dir.exist?("res") | |
Dir.mkdir("res/mdpi") unless Dir.exist?("res/mdpi") | |
Dir.mkdir("res/hdpi") unless Dir.exist?("res/hdpi") |
NewerOlder