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
diff --git a/node_modules/react-native-ble-plx/android/build/generated/source/buildConfig/debug/com/polidea/reactnativeble/BuildConfig.java b/node_modules/react-native-ble-plx/android/build/generated/source/buildConfig/debug/com/polidea/reactnativeble/BuildConfig.java | |
new file mode 100644 | |
index 0000000..a5ba89a | |
--- /dev/null | |
+++ b/node_modules/react-native-ble-plx/android/build/generated/source/buildConfig/debug/com/polidea/reactnativeble/BuildConfig.java | |
@@ -0,0 +1,13 @@ | |
+/** | |
+ * Automatically generated file. DO NOT MODIFY | |
+ */ | |
+package com.polidea.reactnativeble; |
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
/* | |
Example usage; | |
<autocomplete | |
url="/statutes/all" | |
create | |
v-model="charge.citation" | |
valueField="number" | |
displayField="name" | |
@selected="statuteSelected" | |
></autocomplete> |
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
/* | |
Provides an easy interface for add select statements to Eloquent relationships. | |
This allows you to sort by the fields in the query. | |
Usage | |
add to AppServiceProvider@boot | |
Relationship name and column must be seperated by pipe. | |
Laravel strips out . so it was easier to just use something else | |
Model::withRelationalAttribute(['relation|column as relation_column'])->get() |
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
Illuminate\Database\Eloquent\Builder::macro('toSqlWithBindings', function () { | |
return $this->toBase()->toSqlWithBindings(); | |
}); | |
\Illuminate\Database\Query\Builder::macro('toSqlWithBindings', function () { | |
return vsprintf( | |
str_replace('?', '%s', $this->grammar->compileSelect($this)), | |
collect($this->getBindings()) |
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
/** | |
* | |
* Usage | |
* | |
* Register in provider | |
* Builder::mixin(new WithAttachedMixin); | |
* | |
* withAttached( | |
* relation name, | |
* name of property (default = {relation_name}_{column}s), |
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
require('./bootstrap'); | |
import {createApp} from "vue"; | |
import {registerComponents} from './components'; | |
const app = createApp({}); | |
registerComponents(app) | |
app.mount('#app') |
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
/** | |
* Create new class with values from original unless passed in changes map | |
*/ | |
inline fun <reified T: Any> T.replicateWithChanges( | |
changes: Map<String, Any?> = mapOf() | |
): T { | |
val constructor = this.javaClass.kotlin.primaryConstructor | |
if(constructor?.parameters == null) throw Exception("Invalid Constructor for Replication") | |
val propertyMap = this.mapProperties() |