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
security cms -D -i pp.mobileprovision > tmp.plist |
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
double delayInSeconds = 1.0; // 遅延時間 | |
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); | |
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ | |
// ここに遅延実行したい処理を記述。 | |
}); |
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
javah -classpath bin/classes -d jni jp.co.petworks.filesystemtest.NDKBridge |
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
javap -s -p java.io.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/bash | |
IPA="/path/to/original.ipa" | |
NEWIPA="new_filename.ipa" | |
PROVISION="/path/to/new.mobileprovision" | |
CERTIFICATE="Name of certificate: To sign with" | |
unzip -q "$IPA" | |
rm -rf Payload/*.app/_CodeSignature | |
cp "$PROVISION" Payload/*.app/embedded.mobileprovision | |
codesign -f -s "$CERTIFICATE" Payload/*.app | |
zip -qr "$NEWIPA" Payload |
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
/* | |
Edison上で | |
% gcc -lmraa -o mraacheck mraacheck.c | |
% ./mraacheck | |
hello mraa | |
Version: v0.9.0 | |
Running on: Intel Edison | |
などと表示されればok. | |
*/ | |
#include "mraa.h" |
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
set -gx PYENV_ROOT "$HOME/.pyenv" | |
status --is-interactive; and . (pyenv init - | psub) |
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
using System; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
// Unity 2019.3 でGetUnityTargetNameがdeprecatedになってるので。 | |
public class MyBuildPostprocessor { | |
[PostProcessBuild] |
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
// | |
// The Zen Programming Language(tm) | |
// Copyright (c) 2018-2020 kristopher tate & connectFree Corporation. | |
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
// | |
// This project may be licensed under the terms of the ConnectFree Reference | |
// Source License (CF-RSL). Corporate and Academic licensing terms are also | |
// available. Please contact <[email protected]> for details. | |
// | |
// Zen, the Zen three-circles logo and The Zen Programming Language are |
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
# include <Siv3D.hpp> | |
void PaintCircle(int cx, int cy, int r, Color c) { | |
int x, y; | |
x = r; | |
y = 0; | |
while (x >= y) { | |
Line(cx + x, cy + y, cx + x, cy - y).draw(1, c); |