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
public interface UploadService { | |
@Multipart | |
@POST("/upload") | |
Observable<Response> upload(@Part("file") TypedFile 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
#!/bin/sh | |
mkdir -p drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi | |
for name in foo bar; do | |
convert -resize 216x116 "${name}@3x.png" "${name}@2x.png" | |
convert -resize 162x87 "${name}@3x.png" "${name}@1.5x.png" | |
convert -resize 108x58 "${name}@3x.png" "${name}.png" | |
convert "${name}@3x.png" -background transparent -gravity northeast -splice 1x1 tmp.png | |
convert tmp.png -background transparent -gravity southwest -splice 1x1 "drawable-xxhdpi/${name}.9.png" |
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
----- | |
libxml2 is missing. Please locate mkmf.log to investigate how it is failing. | |
----- |
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/bash | |
plistBuddy="/usr/libexec/PlistBuddy" | |
infoPlistFileSource="${SRCROOT}/${INFOPLIST_FILE}" | |
infoPlistFileDestination="${TEMP_DIR}/Preprocessed-Info.plist" | |
currentVersion=$($plistBuddy -c "Print CFBundleVersion" $infoPlistFileSource) | |
timeStamp=$(date '+%s') | |
versionString="$currentVersion.$timeStamp" | |
$plistBuddy -c "Set :CFBundleVersion $versionString" $infoPlistFileDestination |
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 subprocess | |
from logbook.data import DataType | |
def osx_notify(message): | |
subprocess.call(('/opt/local/bin/terminal-notifier', '-message', message)) | |
desktop_notify = osx_notify |
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
# -*- coding:utf-8 -*- | |
""" | |
.apk/.ipaをDeployGateにアップロード、配布ページをChatWorkで通知する | |
""" | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
from argparse import ArgumentParser | |
import os | |
import requests |
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
# -*- coding:utf-8 -*- | |
import math | |
class Fleet(object): | |
level = 0 | |
ships = [] | |
def __init__(self, level, *ships): | |
self.level = level |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import json | |
import os | |
import re | |
from optparse import make_option | |
from collections import OrderedDict | |
from django.core.urlresolvers import get_urlconf, get_resolver |
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
prefix="/opt/local" | |
exec_prefix="/opt/local" | |
libdir="/opt/local/lib" | |
includedir="/opt/local/include/openjpeg-2.0" | |
Name: OpenJPEG | |
Description: Open-source C-Library for JPEG 2000 | |
Version: 2.0.0 | |
Requires: | |
Libs: -L${libdir} -lopenjp2 |
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
cmake_minimum_required(VERSION 2.8.8) | |
project(jxrlib) | |
set(jxrlib_VERSION 1.1.0) | |
set(jxrlib_SOVERSION 1) | |
set(bindir bin) | |
set(incdir include) | |
set(libdir lib) | |
set(CMAKE_SKIP_BUILD_RPATH OFF) |