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") |
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
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
gem 'haml-rails' | |
gem 'erb2haml' | |
gem_group :development, :test do | |
gem 'hirb' | |
gem 'hirb-unicode' | |
gem 'pry-rails' | |
gem 'pry-doc' | |
gem 'pry-byebug' | |
gem 'rspec-rails', '~> 3.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
Permissionのファイルは | |
/data/system/users/{userId}/runtime-permissions.xml | |
ここにこういうのが入ってる | |
```runtime-permissions.xml | |
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> | |
<runtime-permissions> | |
<pkg name="com.android.launcher"> |
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
<?xml version="1.0"?> | |
<root> | |
<!-- for RealForce --> | |
<devicevendordef> | |
<vendorname>RealForce_VendorID</vendorname> | |
<vendorid>0x0853</vendorid> | |
</devicevendordef> | |
<deviceproductdef> |
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
<?xml version="1.0"?><!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<module name="Checker"> | |
<!--module name="NewlineAtEndOfFile"/--> | |
<module name="FileLength" /> | |
<module name="FileTabCharacter" /> |
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
mkdir ________work | |
ffmpeg -i $0 -an -r 15 ________work/%04d.png | |
convert work/*.png __mov.gif | |
rm -r ________work |
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
- magic | |
CAFEBABE | |
- minor_virsion | |
0000 | |
- major_version | |
0034 | |
- constant_pool_count |
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.kgmshin.lint; | |
import com.android.tools.lint.client.api.IssueRegistry; | |
import com.android.tools.lint.detector.api.Issue; | |
import java.util.Collections; | |
import java.util.List; | |
public class LintIssueRegistry extends IssueRegistry { |
OlderNewer