Skip to content

Instantly share code, notes, and snippets.

View hmhmsh's full-sized avatar

shunkun hmhmsh

View GitHub Profile
import Foundation
import UIKit
class Recursion: NSObject {
internal var zundoko = [String]()
internal var item: [String]!
internal var decision: String!
internal var count: Int!
#if [ "${CONFIGURATION}" = "Release" ]; then
xcrun -sdk iphoneos PackageApplication \
"${BUILD_DIR}/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}"/"${WRAPPER_NAME}" \
-o ~/Downloads/"${PRODUCT_NAME}".ipa \
#--embed ~/Library/MobileDevice/Provisioning\ Profiles/<プロファイルのファイル名>
curl -F "token=<API key>" -F "file=@/Users/<Use名>/Downloads/${PRODUCT_NAME}.ipa" -F "message=<メッセージ>" https://deploygate.com/api/users/<deployGateのユーザー名>/apps
#fi
@hmhmsh
hmhmsh / PAPP.java
Last active November 24, 2016 07:03
import java.util.Random;
class PPAP {
enum PPAP_STATE {
UNKNOWN,
PEN,
PINEAPPLE,
APPLE,
PPAP;
{
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": ["source.kt"],
"shell_cmd": "gradle -Pmain=\"${file_name}\""
}
{
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": ["source.swift"],
"shell_cmd": "swift $file_name"
}
{
"selector": ["source.kts"],
"shell_cmd": "kotlinc -script $file_name"
}
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
@hmhmsh
hmhmsh / T2bf.java
Last active December 1, 2016 10:24
Text to Brainf*ck
/*
## Usage
$ javac T2bf.java; java T2bf helloworld.tb hello.tt
*/
class T2bf extends Text2Brainfuck {
public static void main(String[] args) {
T2bf tb = new T2bf(args);
}
public T2bf(String[] args) {
import java.util.*
val ppap = listOf("I have a ✏️", "I have a 🍍", "I have an 🍎", "I have a ✏️")
fun getPPAP(count : Int) : String {
println(ppap[count])
return ppap[count]
}
fun compile() {
{
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": ["source.java"],
"shell_cmd": "gradle -Pmain=\"${file_base_name}\""
}