$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
This file contains hidden or 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 | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
This file contains hidden or 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 { Collection, Db, Document, MongoClient } from "mongodb"; | |
| // get environment variables for database uri and database name | |
| let uri = process.env.MONGODB_URI; | |
| let dbName = process.env.MONGODB_DB; | |
| // create cache variables so we can cache our connection | |
| let cachedClient: MongoClient | null = null; | |
| let cachedDb: Db | null = null; |
This file contains hidden or 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 | |
| # shellcheck disable=SC2086 | |
| # nekomimi-daimao | |
| # *MIT* https://opensource.org/licenses/mit-license.php | |
| # https://gist.github.com/nekomimi-daimao/9e4a8ff0e68818574f971a7ff86a536a | |
| # create license file | |
| # docker run --rm -v license:/license -w /license unityci/editor:ubuntu-2019.4.24f1-android-0.12.0 /opt/unity/Editor/Unity -quit -batchmode -nographics -logFile -createManualActivationFile |
This file contains hidden or 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
| // Basic Types | |
| let id: number = 5 | |
| let company: string = 'Traversy Media' | |
| let isPublished: boolean = true | |
| let x: any = 'Hello' | |
| let ids: number[] = [1, 2, 3, 4, 5] | |
| let arr: any[] = [1, true, 'Hello'] | |
| // Tuple |
This file contains hidden or 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
| class SampleActivity { | |
| private var hasPerformedKeyExchange: Boolean = false | |
| private var iSmartLinkService: ISmartLinkService? = null | |
| private var requestEntity: TransactionRequestEntity? = null | |
| private var resultEntity: TransactionResultEntity? = null | |
| override fun Init() { | |
| bindService() |
This file contains hidden or 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
| First, from the Linux command line, enable the rewrite module for apache with this command: | |
| sudo a2enmod rewrite | |
| You can check to see if this worked by running: | |
| sudo apache2ctl -M | |
| and seeing if rewrite_module is on the list. |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| // File: @openzeppelin/contracts/GSN/Context.sol | |
| // https://ropsten.etherscan.io/address/0x8df55a60a1c98281a60d6c89f59398bee854fbc8#code | |
| pragma solidity ^0.6.0; | |
| /* | |
| * @dev Provides information about the current execution context, including the | |
| * sender of the transaction and its data. While these are generally available | |
| * via msg.sender and msg.data, they should not be accessed in such a direct |
This file contains hidden or 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
| $val = "1,234,988.56"; | |
| $num = floatval(str_replace(",","",$val)); | |
| echo $num; | |
| // returns - 1234988.56 |