-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
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
/* | |
* Copyright 2012 CodeSlap - Cristian Castiblanco | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
To fix the following warning, you must add "-keepattributes EnclosingMethod" to your proguard config. | |
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class | |
(me.kiip.internal.c.h) that doesn't come with an | |
associated EnclosingMethod attribute. This class was probably produced by a | |
compiler that did not target the modern .class file format. The recommended | |
solution is to recompile the class from source, using an up-to-date compiler | |
and without specifying any "-target" type options. The consequence of ignoring | |
this warning is that reflective operations on this class will incorrectly | |
indicate that it is *not* an inner class. |
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
(when (>= emacs-major-version 24) | |
;; フォントセットを作る | |
(let* ((fontset-name "myfonts") ; フォントセットの名前 | |
(size 14) ; ASCIIフォントのサイズ [9/10/12/14/15/17/19/20/...] | |
(asciifont "Source Code Pro") ; ASCIIフォント | |
(jpfont "Takaoゴシック") ; 日本語フォント | |
(font (format "%s-%d:weight=normal:slant=normal" asciifont size)) | |
(fontspec (font-spec :family asciifont)) | |
(jp-fontspec (font-spec :family jpfont)) | |
(fsn (create-fontset-from-ascii-font font nil fontset-name))) |
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
#!/usr/bin/env ruby | |
require 'xcodeproj' | |
require 'fileutils' | |
PROJECT = 'Unity-iPhone' | |
TARGET = 'Unity-iPhone' | |
LIBRARY = 'Libraries' | |
LOCALIZE = 'Localize' |
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
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
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
@Grab(group='org.imgscalr', module='imgscalr-lib', version='4.2') // Grailsの場合はBuildConfig.groovyのdependenciesに 「compile 'org.imgscalr:imgscalr-lib:4.2'」 | |
import java.awt.image.BufferedImage | |
import javax.imageio.ImageIO | |
import org.imgscalr.* | |
def srcFilepath = "/path/to/target.jpg" | |
def destFormat = 'jpg' | |
BufferedImage sourceImg = ImageIO.read(new File(srcFilepath)) |
- Android Studio (tested with 0.8.10)
- Gradle or Gradle Wrapper (tested with 1.12)
- Robolectric Gradle Plugin (tested with 2.3)
- The Android SDK with API Level 18 installed
Setup a new Android project with Android Studio. If you already have done this you can skip this step.
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
// please check https://github.com/bademux/robolectric-java-gradle-plugin instead | |
//build.gradle | |
//fixes AndroidStudion<>Robolectric integration | |
//fixes 'java.lang.RuntimeException: Stub!' and 'NoClassDefFoundError' | |
gradle.projectsEvaluated { | |
def imlFile = file(project.name + '.iml') | |
def parsedXml; |
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
/* | |
MIT License | |
Copyright (c) 2015 Adel Nizamutdinov | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
OlderNewer