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
We're going to create a preset patch using this guide. | |
Technical Specification for OP-XY Patch JSON File Format | |
1. Introduction | |
1.1 Purpose | |
The purpose of this document is to provide a comprehensive technical specification for the JSON file format used to store and exchange patch data on the OP-XY device. This specification aims to standardize the structure and content of patch files, ensuring compatibility and consistency across different patches, whether they are synth presets, drum kits, or sample-based instruments. By adhering to this format, developers, sound designers, and users can create, modify, and share patches efficiently and reliably. | |
1.2 Overview |
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
class DetailViewModel : ScopedViewModel() { | |
fun startTask() { | |
launch { | |
// Switch the 'background' thread | |
withContext(Dispatchers.Default) { | |
// do your long-running thing | |
} | |
// We're now back on the Android's Main thread | |
updateUi() |
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 controllers | |
import play.api.libs.ws.WS | |
import play.api.mvc.{Action, Controller} | |
import scala.concurrent.Future | |
class VerifyCredentialsController extends Controller { | |
implicit val context = scala.concurrent.ExecutionContext.Implicits.global |
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
<?php | |
//number of people in the reservation | |
$people = 2; | |
//time, just the hour, pm | |
$time = 7; | |
$url = 'http://www.opentable.com/nextavailabletable.aspx?hpu=1025002033&shpu=1&rid=1180&m=4&d=8/13/2010+'.$time.':00:00+PM&p='.$people; | |
$data = file_get_contents($url); | |
$regex = '/\[\'\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}\:\d{2}\:\d{2} PM/'; |