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
const fs = require('fs'); | |
const path = require('path'); | |
const readline = require('readline'); | |
const API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"; | |
const headers = { | |
"Authorization": "Bearer <Hugging face token>", | |
"Content-Type": "application/json" | |
}; |
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
$login = 'username'; | |
$pass = 'password'; | |
$ctx = stream_context_create(); | |
stream_context_set_option($ctx, 'ssl', 'verify_peer', false); | |
stream_context_set_option($ctx, 'ssl', 'verify_peer_name', false); | |
$socket = stream_socket_client('tcp://email-smtp.ap-southeast-2.amazonaws.com:25', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx); | |
try { | |
if (!$socket) { | |
print "Failed to connect $err $errstr\n"; |
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
# download this file to your project folder and excute | |
# chmod +x generate-ios.sh | |
# then run using | |
# ./generate-ios.sh | |
# flutter build defaults to --release | |
flutter build ios | |
# make folder, add .app then zip it and rename it to .ipa | |
mkdir -p 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
package com.tutorialforandroid.testing | |
import android.content.Intent | |
import android.net.Uri | |
import android.support.v4.app.Fragment | |
import android.support.v4.app.FragmentActivity | |
import android.support.v4.app.FragmentManager | |
import android.support.v7.app.AppCompatActivity | |
import com.tutorialforandroid.testing.ui.MainActivityUI |
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
package com.monmonja.tutorial; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Typeface; | |
import android.widget.TextView; | |
/** | |
* tutorial at http://www.tutorialforandroid.com/2015/03/extending-components-and-apptheme-with.html | |
*/ |
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
package com.monmonja.tutorial; | |
import android.app.Dialog; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.DialogFragment; | |
import android.view.View; | |
import android.view.ViewGroup; |